You are here

protected function FeaturesCommands::buildConfig in Features 8.3

Same name and namespace in other branches
  1. 8.4 src/Commands/FeaturesCommands.php \Drupal\features\Commands\FeaturesCommands::buildConfig()

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

Parameters

array $items: The items to return data for.

Return value

array An array of config items.

1 call to FeaturesCommands::buildConfig()
FeaturesCommands::add in src/Commands/FeaturesCommands.php
Add a config item to a feature package.

File

src/Commands/FeaturesCommands.php, line 828

Class

FeaturesCommands
Drush commands for Features.

Namespace

Drupal\features\Commands

Code

protected function buildConfig(array $items) {
  $result = [];
  foreach ($items as $config_type => $item) {
    foreach ($item as $item_name => $title) {
      $result[] = $this->manager
        ->getFullName($config_type, $item_name);
    }
  }
  return $result;
}