You are here

public function InMemoryStorage::read in Configuration Provider 8

Reads configuration data from the storage.

Parameters

string $name: The name of a configuration object to load.

Return value

array|bool The configuration data stored for the configuration object name. If no configuration data exists for the given name, FALSE is returned.

Overrides StorageInterface::read

File

src/InMemoryStorage.php, line 53

Class

InMemoryStorage
Provides an in memory confituration storage.

Namespace

Drupal\config_provider

Code

public function read($name) {
  if (isset($this->config[$this->collection][$name])) {
    return $this->config[$this->collection][$name];
  }
  return FALSE;
}