function CachedStorage::encode

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

Overrides StorageInterface::encode

File

core/lib/Drupal/Core/Config/CachedStorage.php, line 166

Class

CachedStorage
Defines the cached storage.

Namespace

Drupal\Core\Config

Code

public function encode($data) {
    return $this->storage
        ->encode($data);
}

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