Gets configuration names associated with components.
array $components: (optional) Array of component lists indexed by type. If not present or it is an empty array, it will update all components.
array Array of configuration object names.
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();
}
}