
| Current Path : /var/www/html/strat/web/core/modules/config/tests/config_test/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/strat/web/core/modules/config/tests/config_test/src/TestInstallStorage.php |
<?php
namespace Drupal\config_test;
use Drupal\Core\Config\InstallStorage;
use Drupal\Core\Extension\ExtensionDiscovery;
/**
* 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.
*/
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;
}
}