You are here

public function FileStorage::readMultiple in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::readMultiple()

Reads configuration data from the storage.

Parameters

array $names: List of names of the configuration objects to load.

Return value

array A list of the configuration data stored for the configuration object name that could be loaded for the passed list of names.

Overrides StorageInterface::readMultiple

File

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

Class

FileStorage
Defines the file storage.

Namespace

Drupal\Core\Config

Code

public function readMultiple(array $names) {
  $list = array();
  foreach ($names as $name) {
    if ($data = $this
      ->read($name)) {
      $list[$name] = $data;
    }
  }
  return $list;
}