protected function InstallStorage::getAllFolders

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

Return value

array An array mapping config object names with directories.

3 calls to InstallStorage::getAllFolders()
InstallStorage::getFilePath in drupal/core/lib/Drupal/Core/Config/InstallStorage.php
Overrides Drupal\Core\Config\FileStorage::getFilePath().
InstallStorage::listAll in drupal/core/lib/Drupal/Core/Config/InstallStorage.php
Implements Drupal\Core\Config\StorageInterface::listAll().
SchemaStorage::exists in drupal/core/lib/Drupal/Core/Config/Schema/SchemaStorage.php
Implements \Drupal\Core\Config\StorageInterface::exists().

File

drupal/core/lib/Drupal/Core/Config/InstallStorage.php, line 111
Contains Drupal\Core\Config\InstallStorage.

Class

InstallStorage
Storage controller used by the Drupal installer.

Namespace

Drupal\Core\Config

Code

protected function getAllFolders() {
  if (!isset($this->folders)) {
    $this->folders = $this
      ->getComponentNames('profile', array(
      drupal_get_profile(),
    ));
    $this->folders += $this
      ->getComponentNames('module', array_keys(drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\\.module$/', 'modules', 'name', 0)));
    $this->folders += $this
      ->getComponentNames('theme', array_keys(drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\\.info.yml$/', 'themes')));
  }
  return $this->folders;
}