function YamlParserProxy::encode
Encodes data into the serialization format.
Parameters
mixed $data: The data to encode.
Return value
string The encoded data.
Overrides SerializationInterface::encode
File
-
core/
tests/ Drupal/ Tests/ Component/ Serialization/ YamlTest.php, line 165
Class
Namespace
Drupal\Tests\Component\SerializationCode
public static function encode($data) {
return static::$mock->encode($data);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.