You are here

function _drush_features_build_config in Features 8.4

Same name and namespace in other branches
  1. 8.3 drush/features.drush8.inc \_drush_features_build_config()

Returns an array of full config names given a array[$type][$component].

Parameters

array $items: The items to return data for.

1 call to _drush_features_build_config()
drush_features_add in drush/features.drush8.inc
Adds a component to a features module.

File

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

Code

function _drush_features_build_config(array $items) {

  /** @var \Drupal\features\FeaturesManagerInterface $manager */
  $manager = \Drupal::service('features.manager');
  $result = [];
  foreach ($items as $config_type => $item) {
    foreach ($item as $item_name => $title) {
      $result[] = $manager
        ->getFullName($config_type, $item_name);
    }
  }
  return $result;
}