public function FileStorage::readMultiple in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::readMultiple()
- 10 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 128
Class
- FileStorage
- Defines the file storage.
Namespace
Drupal\Core\ConfigCode
public function readMultiple(array $names) {
$list = [];
foreach ($names as $name) {
if ($data = $this
->read($name)) {
$list[$name] = $data;
}
}
return $list;
}