public static function ConfigurationManagement::allConfigurations in Configuration Management 7.2
Returns a list of configurations available in the site without distinction of tracked and not tracked.
Return value
array
1 call to ConfigurationManagement::allConfigurations()
File
- lib/
Drupal/ configuration/ Config/ ConfigurationManagement.php, line 534 - Definition of Drupal\configuration\Config\ConfigurationManagement.
Class
Namespace
Drupal\configuration\ConfigCode
public static function allConfigurations() {
$excluded = static::excludedConfigurations();
$handlers = static::getConfigurationHandler();
$tracked = static::trackedConfigurations();
$all = array();
foreach ($handlers as $component => $handler) {
$identifiers = $handler::getAllIdentifiersCached($component);
foreach ($identifiers as $identifier => $identifier_human_name) {
$id = $component . '.' . $identifier;
if (in_array($id, $excluded)) {
continue;
}
if (!empty($tracked[$component][$identifier])) {
// Set the hash for the tracked configurations
$all[$component][$identifier] = array(
'hash' => $tracked[$component][$identifier],
'name' => $identifiers[$identifier],
);
}
else {
// Set FALSE for the non tracked configurations
$all[$component][$identifier] = array(
'hash' => FALSE,
'name' => $identifiers[$identifier],
);
}
}
}
return $all;
}