function InstallStorage::listAll
Same name in other branches
- 9 core/lib/Drupal/Core/Config/InstallStorage.php \Drupal\Core\Config\InstallStorage::listAll()
- 8.9.x core/lib/Drupal/Core/Config/InstallStorage.php \Drupal\Core\Config\InstallStorage::listAll()
- 10 core/lib/Drupal/Core/Config/InstallStorage.php \Drupal\Core\Config\InstallStorage::listAll()
Overrides FileStorage::listAll
File
-
core/
lib/ Drupal/ Core/ Config/ InstallStorage.php, line 128
Class
- InstallStorage
- Storage used by the Drupal installer.
Namespace
Drupal\Core\ConfigCode
public function listAll($prefix = '') {
$names = array_keys($this->getAllFolders());
if (!$prefix) {
return $names;
}
else {
$return = [];
foreach ($names as $index => $name) {
if (str_starts_with($name, $prefix)) {
$return[$index] = $names[$index];
}
}
return $return;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.