You are here

protected function TestInstallStorage::getAllFolders in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config/tests/config_test/src/TestInstallStorage.php \Drupal\config_test\TestInstallStorage::getAllFolders()

Returns a map of all config object names and their folders.

Return value

array An array mapping config object names with directories.

Overrides InstallStorage::getAllFolders

File

core/modules/config/tests/config_test/src/TestInstallStorage.php, line 24
Contains \Drupal\config_test\TestInstallStorage.

Class

TestInstallStorage
Tests configuration of profiles, modules and themes.

Namespace

Drupal\config_test

Code

protected function getAllFolders() {
  if (!isset($this->folders)) {
    $this->folders = $this
      ->getCoreNames();
    $listing = new ExtensionDiscovery(\Drupal::root());
    $listing
      ->setProfileDirectories(array());
    $this->folders += $this
      ->getComponentNames($listing
      ->scan('profile'));
    $this->folders += $this
      ->getComponentNames($listing
      ->scan('module'));
    $this->folders += $this
      ->getComponentNames($listing
      ->scan('theme'));
  }
  return $this->folders;
}