function InstallStorage::listAll
Same name in other branches
- 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()
- 11.x 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 (strpos($name, $prefix) === 0) {
$return[$index] = $names[$index];
}
}
return $return;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.