You are here

protected function FeaturesManager::addConfigList in Features 8.3

Same name and namespace in other branches
  1. 8.4 src/FeaturesManager.php \Drupal\features\FeaturesManager::addConfigList()
1 call to FeaturesManager::addConfigList()
FeaturesManager::reorderMissing in src/FeaturesManager.php
Sort the Missing config into order by dependencies.

File

src/FeaturesManager.php, line 1357

Class

FeaturesManager
The FeaturesManager provides helper functions for building packages.

Namespace

Drupal\features

Code

protected function addConfigList($full_name, &$list) {
  $index = array_search($full_name, $list);
  if ($index !== FALSE) {
    unset($list[$index]);
  }
  array_unshift($list, $full_name);
  $value = $this->extensionStorages
    ->read($full_name);
  if (isset($value['dependencies']['config'])) {
    foreach ($value['dependencies']['config'] as $config_name) {
      $this
        ->addConfigList($config_name, $list);
    }
  }
}