3 namespace Drupal\config_test;
5 use Drupal\Core\Config\InstallStorage;
6 use Drupal\Core\Extension\ExtensionDiscovery;
9 * Tests configuration of profiles, modules and themes.
11 * A test configuration storage to read configuration from all profiles, modules
12 * and themes regardless of installation status or installed profile.
14 class TestInstallStorage extends InstallStorage {
19 protected function getAllFolders() {
20 if (!isset($this->folders)) {
21 $this->folders = $this->getCoreNames();
22 $listing = new ExtensionDiscovery(\Drupal::root());
23 $listing->setProfileDirectories([]);
24 $this->folders += $this->getComponentNames($listing->scan('profile'));
25 $this->folders += $this->getComponentNames($listing->scan('module'));
26 $this->folders += $this->getComponentNames($listing->scan('theme'));
28 return $this->folders;