public static function ConfigurationManagement::nonTrackedConfigurations in Configuration Management 7.2
Returns a list of configurations that are not currently being tracked.
Return value
array
3 calls to ConfigurationManagement::nonTrackedConfigurations()
- ConfigurationApiTest::testStartAndStopTracking in tests/
configuration.test - configuration_ui_notracking_form in ui/
configuration_ui.admin.inc - Menu Callback Form.
- _configuration_get_not_tracked in ./
configuration.drush.inc - List of all components that are not tracked.
File
- lib/
Drupal/ configuration/ Config/ ConfigurationManagement.php, line 489 - Definition of Drupal\configuration\Config\ConfigurationManagement.
Class
Namespace
Drupal\configuration\ConfigCode
public static function nonTrackedConfigurations() {
$excluded = static::excludedConfigurations();
$handlers = static::getConfigurationHandler();
$tracked = static::trackedConfigurations();
$non_tracked = array();
foreach (array_keys($handlers) as $component) {
$handler = static::getConfigurationHandler($component);
$identifiers = $handler::getAllIdentifiersCached($component);
foreach ($identifiers as $identifier => $identifier_human_name) {
if (empty($tracked[$component]) || empty($tracked[$component][$identifier])) {
$id = $component . '.' . $identifier;
if (in_array($id, $excluded)) {
continue;
}
$non_tracked[$component][$identifier] = array(
'id' => $id,
'name' => $identifier_human_name,
);
}
}
}
return $non_tracked;
}