function YamlParserProxy::encode
Same name in this branch
- 9 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlParserProxy::encode()
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Serialization/YamlTest.php \Drupal\Tests\Core\Serialization\YamlParserProxy::encode()
- 8.9.x core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\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/ Core/ Serialization/ YamlTest.php, line 52
Class
Namespace
Drupal\Tests\Core\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.