public function FileStorage::encode

Implements Drupal\Core\Config\StorageInterface::encode().

Throws

Symfony\Component\Yaml\Exception\DumpException

Overrides StorageInterface::encode

1 call to FileStorage::encode()
FileStorage::write in drupal/core/lib/Drupal/Core/Config/FileStorage.php
Implements Drupal\Core\Config\StorageInterface::write().

File

drupal/core/lib/Drupal/Core/Config/FileStorage.php, line 163
Definition of Drupal\Core\Config\FileStorage.

Class

FileStorage
Defines the file storage controller.

Namespace

Drupal\Core\Config

Code

public function encode($data) {

  // The level where you switch to inline YAML is set to PHP_INT_MAX to ensure
  // this does not occur.
  return $this
    ->getDumper()
    ->dump($data, PHP_INT_MAX);
}