public function InstallStorage::listAll

Implements Drupal\Core\Config\StorageInterface::listAll().

Overrides FileStorage::listAll

File

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

Class

InstallStorage
Storage controller used by the Drupal installer.

Namespace

Drupal\Core\Config

Code

public function listAll($prefix = '') {
  $names = array_keys($this
    ->getAllFolders());
  if (!$prefix) {
    return $names;
  }
  else {
    $return = array();
    foreach ($names as $index => $name) {
      if (strpos($name, $prefix) === 0) {
        $return[$index] = $names[$index];
      }
    }
    return $return;
  }
}