You are here

public function ConfigUpdateUiCliService::addedReport in Configuration Update Manager 8

Displays added config items.

Displays a list of config items that did not come from your installed modules, themes, or install profile.

Parameters

string $name: The type of config to report on. See config-list-types to list them. You can also use system.all for all types, or system.simple for simple config.

Return value

array|\Consolidation\OutputFormatters\StructuredData\RowsOfFields If using Drush 8, an array of added configuration. If using Drush 9, a structured data object of rows of added configuration.

File

config_update_ui/src/ConfigUpdateUiCliService.php, line 107

Class

ConfigUpdateUiCliService
Handles all the logic for commands for various versions of Drush.

Namespace

Drupal\config_update_ui

Code

public function addedReport($name) {
  list($activeList, $installList, $optionalList) = $this->configList
    ->listConfig('type', $name);
  $addedItems = array_diff($activeList, $installList, $optionalList);
  if (!count($addedItems)) {
    $this->logger
      ->success(dt('No added config.'));
  }
  sort($addedItems);
  return $addedItems;
}