You are here

public function StorageInterface::decode in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::decode()

Decodes configuration data from the storage-specific format.

Parameters

string $raw: The raw configuration data string to decode.

Return value

array The decoded configuration data as an associative array.

This is a publicly accessible static method to allow for alternative usages in data conversion scripts and also tests.

5 methods override StorageInterface::decode()
CachedStorage::decode in core/lib/Drupal/Core/Config/CachedStorage.php
Decodes configuration data from the storage-specific format.
DatabaseStorage::decode in core/lib/Drupal/Core/Config/DatabaseStorage.php
Implements Drupal\Core\Config\StorageInterface::decode().
FileStorage::decode in core/lib/Drupal/Core/Config/FileStorage.php
Decodes configuration data from the storage-specific format.
NullStorage::decode in core/lib/Drupal/Core/Config/NullStorage.php
Decodes configuration data from the storage-specific format.
StorageReplaceDataWrapper::decode in core/modules/config/src/StorageReplaceDataWrapper.php
Decodes configuration data from the storage-specific format.

File

core/lib/Drupal/Core/Config/StorageInterface.php, line 124
Contains \Drupal\Core\Config\StorageInterface.

Class

StorageInterface
Defines an interface for configuration storage.

Namespace

Drupal\Core\Config

Code

public function decode($raw);