function NullNormalizer::getNormalizationSchema

Overrides SchematicNormalizerTrait::getNormalizationSchema

File

core/modules/serialization/src/Normalizer/NullNormalizer.php, line 42

Class

NullNormalizer
Null normalizer.

Namespace

Drupal\serialization\Normalizer

Code

protected function getNormalizationSchema(mixed $object, array $context = []) : array {
    return [
        'type' => 'null',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.