You are here

public function InMemoryStorage::readMultiple in Configuration Provider 8

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

src/InMemoryStorage.php, line 63

Class

InMemoryStorage
Provides an in memory confituration storage.

Namespace

Drupal\config_provider

Code

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