You are here

function _get_component_and_identifier in Configuration Management 7.2

List of all components and its identifiers.

2 calls to _get_component_and_identifier()
_components_indentifier_formater in ./configuration.drush.inc
List of all components and its identifier in the following format component.identifier.
_configuration_list in ./configuration.drush.inc

File

./configuration.drush.inc, line 157
configuration.drush.inc Let you perform configuration actions from the console.

Code

function _get_component_and_identifier() {

  //get all of the components
  $handlers = ConfigurationManagement::getConfigurationHandler();
  foreach ($handlers as $component => $handler) {

    //get all identifiers from a component
    $identifiers = $handler::getAllIdentifiers($component);
    foreach (array_keys($identifiers) as $identifier) {
      $rows[] = array(
        'handler' => $handler::getComponentHumanName($component),
        'machine_name' => $component,
        'identifier' => $identifier,
      );
    }
  }
  return $rows;
}