function FileStorage::readMultiple

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::readMultiple()
  2. 8.9.x core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::readMultiple()
  3. 10 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::readMultiple()

Overrides StorageInterface::readMultiple

File

core/lib/Drupal/Core/Config/FileStorage.php, line 128

Class

FileStorage
Defines the file storage.

Namespace

Drupal\Core\Config

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.