You are here

public function StorageInterface::read in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::read()
  2. 10 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::read()

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.

8 methods override StorageInterface::read()
CachedStorage::read in core/lib/Drupal/Core/Config/CachedStorage.php
Reads configuration data from the storage.
DatabaseStorage::read in core/lib/Drupal/Core/Config/DatabaseStorage.php
Reads configuration data from the storage.
FileStorage::read in core/lib/Drupal/Core/Config/FileStorage.php
Implements Drupal\Core\Config\StorageInterface::read().
ManagedStorage::read in core/lib/Drupal/Core/Config/ManagedStorage.php
Reads configuration data from the storage.
MemoryStorage::read in core/lib/Drupal/Core/Config/MemoryStorage.php
Reads configuration data from the storage.

... See full list

File

core/lib/Drupal/Core/Config/StorageInterface.php, line 39

Class

StorageInterface
Defines an interface for configuration storage.

Namespace

Drupal\Core\Config

Code

public function read($name);