TestInstallStorage.php in Drupal 9
File
core/modules/config/tests/config_test/src/TestInstallStorage.php
View source
<?php
namespace Drupal\config_test;
use Drupal\Core\Config\InstallStorage;
use Drupal\Core\Extension\ExtensionDiscovery;
class TestInstallStorage extends InstallStorage {
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;
}
}