You are here

public function ConfigUpdateUiCliService::differentReport in Configuration Update Manager 8

Displays differing config items.

Displays a list of config items that differ from the versions provided by your installed modules, themes, or install profile. See config-diff to show what the differences are.

Parameters

string $type: Run the report for: module, theme, profile, or "type" for config entity type.

string $name: The machine name of the module, theme, etc. to report on. See config-list-types to list types for config entities; 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 differing configuration. If using Drush 9, a structured data object of rows of differing configuration.

File

config_update_ui/src/ConfigUpdateUiCliService.php, line 195

Class

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

Namespace

Drupal\config_update_ui

Code

public function differentReport($type, $name) {
  $differentItems = $this
    ->getDifferentItems($type, $name);
  if (!count($differentItems)) {
    $this->logger
      ->success(dt('No different config'));
  }
  return $differentItems;
}