class TestInstallStorage
Same name and namespace in other branches
- 11.x core/modules/config/tests/config_test/src/TestInstallStorage.php \Drupal\config_test\TestInstallStorage
- 10 core/modules/config/tests/config_test/src/TestInstallStorage.php \Drupal\config_test\TestInstallStorage
- 8.9.x core/modules/config/tests/config_test/src/TestInstallStorage.php \Drupal\config_test\TestInstallStorage
Tests configuration of profiles, modules and themes.
A test configuration storage to read configuration from all profiles, modules and themes regardless of installation status or installed profile.
Hierarchy
- class \Drupal\Core\Config\FileStorage implements \Drupal\Core\Config\StorageInterface
- class \Drupal\Core\Config\InstallStorage extends \Drupal\Core\Config\FileStorage
- class \Drupal\config_test\TestInstallStorage extends \Drupal\Core\Config\InstallStorage
- class \Drupal\Core\Config\InstallStorage extends \Drupal\Core\Config\FileStorage
Expanded class hierarchy of TestInstallStorage
2 files declare their use of TestInstallStorage
- DefaultConfigTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Config/ DefaultConfigTest.php - TestViewsTest.php in core/
modules/ views/ tests/ src/ Kernel/ TestViewsTest.php
File
-
core/
modules/ config/ tests/ config_test/ src/ TestInstallStorage.php, line 14
Namespace
Drupal\config_testView source
class TestInstallStorage extends InstallStorage {
/**
* {@inheritdoc}
*/
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.