function _configuration_get_identifiers in Configuration Management 7.2
List of all components that are not tracked.
1 string reference to '_configuration_get_identifiers'
- configuration_drush_command in ./
configuration.drush.inc - Implements of hook_drush_command().
File
- ./
configuration.drush.inc, line 264 - configuration.drush.inc Let you perform configuration actions from the console.
Code
function _configuration_get_identifiers() {
if ($args = func_get_args()) {
if (empty($args)) {
return drush_set_error('', 'No components supplied.');
}
}
$component = array_shift($args);
$handlers = ConfigurationManagement::getConfigurationHandler();
if (empty($handlers[$component])) {
return drush_set_error('', dt('The component @component is not valid or the module to export the configuration is not installed.', array(
'@component' => $component,
)));
}
$handler = $handlers[$component];
$identifiers = $handler::getAllIdentifiers($component);
$rows = array();
foreach ($identifiers as $identifier) {
$rows[]['identifier'] = $identifier;
}
drush_print_table($rows);
}