function StorageInterface::decode

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::decode()
  2. 8.9.x core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::decode()
  3. 10 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.

13 methods override StorageInterface::decode()
AllowListConfigStorage::decode in core/lib/Drupal/Core/Recipe/AllowListConfigStorage.php
Decodes configuration data from the storage-specific format.
CachedStorage::decode in core/lib/Drupal/Core/Config/CachedStorage.php
Decodes configuration data from the storage-specific format.
CheckpointStorage::decode in core/lib/Drupal/Core/Config/Checkpoint/CheckpointStorage.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.

... See full list

File

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

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.