public function LocaleConfigManager::getComponentNames

Gets configuration names associated with components.

Parameters

array $components: (optional) Array of component lists indexed by type. If not present or it is an empty array, it will update all components.

Return value

array Array of configuration object names.

1 call to LocaleConfigManager::getComponentNames()
LocaleConfigManager::deleteComponentTranslations in drupal/core/modules/locale/lib/Drupal/locale/LocaleConfigManager.php
Deletes configuration translations for uninstalled components.

File

drupal/core/modules/locale/lib/Drupal/locale/LocaleConfigManager.php, line 149
Contains \Drupal\locale\LocaleConfigManager.

Class

LocaleConfigManager
Manages localized configuration type plugins.

Namespace

Drupal\locale

Code

public function getComponentNames(array $components) {
  $components = array_filter($components);
  if ($components) {
    $names = array();
    foreach ($components as $type => $list) {

      // InstallStorage::getComponentNames returns a list of folders keyed by
      // config name.
      $names = array_merge($names, array_keys($this->installStorage
        ->getComponentNames($type, $list)));
    }
    return $names;
  }
  else {
    return $this->installStorage
      ->listAll();
  }
}