public function LocaleConfigManager::getComponentNames in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/locale/src/LocaleConfigManager.php \Drupal\locale\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.
File
- core/
modules/ locale/ src/ LocaleConfigManager.php, line 292 - Contains \Drupal\locale\LocaleConfigManager.
Class
- LocaleConfigManager
- Manages configuration supported in part by interface translation.
Namespace
Drupal\localeCode
public function getComponentNames(array $components = array()) {
$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, $this->defaultConfigStorage
->getComponentNames($type, $list));
}
return $names;
}
else {
return $this->defaultConfigStorage
->listAll();
}
}