protected function ConfigLister::omitKnownPrefixes in Configuration Update Manager 8
Omits config with known prefixes from a list of config names.
1 call to ConfigLister::omitKnownPrefixes()
- ConfigLister::listConfig in src/
ConfigLister.php - Lists the config objects in active and extension storage.
File
- src/
ConfigLister.php, line 215
Class
- ConfigLister
- Provides methods related to config listing.
Namespace
Drupal\config_updateCode
protected function omitKnownPrefixes($list) {
$prefixes = array_keys($this->typesByPrefix);
$list = array_combine($list, $list);
foreach ($list as $name) {
foreach ($prefixes as $prefix) {
if (strpos($name, $prefix . '.') === 0) {
unset($list[$name]);
}
}
}
return array_values($list);
}