public function ConfigUpdateUiCliService::missingReport in Configuration Update Manager 8
Displays missing config items.
Displays a list of config items from your installed modules, themes, or install profile that are not currently in your active config.
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 missing configuration. If using Drush 9, a structured data object of rows of missing configuration.
File
- config_update_ui/
src/ ConfigUpdateUiCliService.php, line 136
Class
- ConfigUpdateUiCliService
- Handles all the logic for commands for various versions of Drush.
Namespace
Drupal\config_update_uiCode
public function missingReport($type, $name) {
list($activeList, $installList, $optionalList) = $this->configList
->listConfig($type, $name);
$missingItems = array_diff($installList, $activeList);
if (!count($missingItems)) {
$this->logger
->success(dt('No missing config.'));
}
sort($missingItems);
return $missingItems;
}