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 127

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;
}
doc_Drupal
2016-10-29 09:13:43
Comments
Leave a Comment

Please login to continue.