function TestInstallStorage::getAllFolders
Same name in other branches
- 9 core/modules/config/tests/config_test/src/TestInstallStorage.php \Drupal\config_test\TestInstallStorage::getAllFolders()
- 8.9.x core/modules/config/tests/config_test/src/TestInstallStorage.php \Drupal\config_test\TestInstallStorage::getAllFolders()
- 10 core/modules/config/tests/config_test/src/TestInstallStorage.php \Drupal\config_test\TestInstallStorage::getAllFolders()
Overrides InstallStorage::getAllFolders
File
-
core/
modules/ config/ tests/ config_test/ src/ TestInstallStorage.php, line 21
Class
- TestInstallStorage
- Tests configuration of profiles, modules and themes.
Namespace
Drupal\config_testCode
protected function getAllFolders() {
if (!isset($this->folders)) {
$this->folders = $this->getCoreNames();
$listing = new ExtensionDiscovery(\Drupal::root());
$listing->setProfileDirectories([]);
$this->folders += $this->getComponentNames($listing->scan('profile'));
$this->folders += $this->getComponentNames($listing->scan('module'));
$this->folders += $this->getComponentNames($listing->scan('theme'));
}
return $this->folders;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.