function _drush_print_config_changes_table

8.0.x config.drush.inc _drush_print_config_changes_table(array $config_changes)
7.x config.drush.inc _drush_print_config_changes_table(array $config_changes)
master config.drush.inc _drush_print_config_changes_table(array $config_changes)

Print a table of config changes.

Parameters

array $config_changes: An array of changes keyed by collection.

2 calls to _drush_print_config_changes_table()
drush_config_import in commands/core/config.drush.inc
Command callback. Import from specified config directory (defaults to sync).
_drush_config_export in commands/core/config.drush.inc

File

commands/core/config.drush.inc, line 932
Provides Configuration Management commands.

Code

function _drush_print_config_changes_table(array $config_changes) {
  $tbl = _drush_format_config_changes_table($config_changes, !drush_get_context('DRUSH_NOCOLOR'));

  $output = $tbl->getTable();
  if (!stristr(PHP_OS, 'WIN')) {
    $output = str_replace("\r\n", PHP_EOL, $output);
  }

  drush_print(rtrim($output));
  return $tbl;
}