You are here

function _drush_features_component_print in Features 8.3

Same name and namespace in other branches
  1. 8.4 drush/features.drush8.inc \_drush_features_component_print()
  2. 7.2 features.drush.inc \_drush_features_component_print()
  3. 7 features.drush.inc \_drush_features_component_print()

Prints a list of filtered components.

1 call to _drush_features_component_print()
drush_features_components in drush/features.drush8.inc
Lists components, with pattern matching.

File

drush/features.drush8.inc, line 894
Features module drush integration.

Code

function _drush_features_component_print($filtered_components) {
  $rows = [
    [
      dt('Available sources'),
    ],
  ];
  foreach ($filtered_components['components'] as $source => $components) {
    foreach ($components as $name => $value) {
      $row = [
        $source . ':' . $name,
      ];
      if (isset($filtered_components['sources'][$source . ':' . $name])) {
        $row[] = dt('Provided by') . ': ' . $filtered_components['sources'][$source . ':' . $name];
      }
      $rows[] = $row;
    }
  }
  drush_print_table($rows, TRUE);
}