You are here

function _configuration_get_components in Configuration Management 7.2

1 string reference to '_configuration_get_components'
configuration_drush_command in ./configuration.drush.inc
Implements of hook_drush_command().

File

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

Code

function _configuration_get_components() {
  $handlers = ConfigurationManagement::getConfigurationHandler();
  $rows = array();
  $rows[] = array(
    'Name',
    'Machine Name',
  );
  foreach ($handlers as $component => $handler) {
    $rows[] = array(
      'handler' => $handler::getComponentHumanName($component),
      'machine_name' => $component,
    );
  }
  drush_print_table($rows, TRUE);
}