You are here

public function FileStorage::encode in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::encode()
  2. 9 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::encode()

File

core/lib/Drupal/Core/Config/FileStorage.php, line 195

Class

FileStorage
Defines the file storage.

Namespace

Drupal\Core\Config

Code

public function encode($data) {
  return Yaml::encode($data);
}