function StorageInterface::decode

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::decode()
  2. 10 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::decode()
  3. 11.x core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::decode()

Decodes configuration data from the storage-specific format.

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

Parameters

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

Return value

array The decoded configuration data as an associative array.

8 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.
ManagedStorage::decode in core/lib/Drupal/Core/Config/ManagedStorage.php
Decodes configuration data from the storage-specific format.
MemoryStorage::decode in core/lib/Drupal/Core/Config/MemoryStorage.php
Decodes configuration data from the storage-specific format.

... See full list

File

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

Class

StorageInterface
Defines an interface for configuration storage.

Namespace

Drupal\Core\Config

Code

public function decode($raw);

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