YamlPecl
class YamlPecl implements SerializationInterface (View source)
Provides default serialization for YAML using the PECL extension.
Methods
static string
encode(mixed $data)
Encodes data into the serialization format.
static mixed
decode(string $raw)
Decodes data from the serialization format.
static
errorHandler(int $severity, string $message)
Handles errors for \Drupal\Component\Serialization\YamlPecl::decode().
static string
getFileExtension()
Gets the file extension for this serialization format.
static string|bool
applyBooleanCallbacks(mixed $value, string $tag, int $flags)
Applies callbacks after parsing to ignore 1.1 style booleans.
Details
static string
encode(mixed $data)
Encodes data into the serialization format.
static mixed
decode(string $raw)
Decodes data from the serialization format.
static
errorHandler(int $severity, string $message)
Handles errors for \Drupal\Component\Serialization\YamlPecl::decode().
static string
getFileExtension()
Gets the file extension for this serialization format.
static string|bool
applyBooleanCallbacks(mixed $value, string $tag, int $flags)
Applies callbacks after parsing to ignore 1.1 style booleans.