Implements Drupal\Core\Config\StorageInterface::encode().
Symfony\Component\Yaml\Exception\DumpException
Overrides StorageInterface::encode
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);
}