W3cubDocs

/Drupal 8

public function FileStorage::readMultiple

public FileStorage::readMultiple(array $names)

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 107

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!FileStorage.php/function/FileStorage::readMultiple/8.1.x