function SchematicNormalizerTrait::getNormalizationSchema
Overrides SchematicNormalizerHelperTrait::getNormalizationSchema
1 call to SchematicNormalizerTrait::getNormalizationSchema()
- SchematicNormalizerTrait::normalize in core/
modules/ serialization/ src/ Normalizer/ SchematicNormalizerTrait.php
9 methods override SchematicNormalizerTrait::getNormalizationSchema()
- FieldItemNormalizer::getNormalizationSchema in core/
modules/ jsonapi/ src/ Normalizer/ FieldItemNormalizer.php - Retrieve JSON Schema for the normalization.
- FieldNormalizer::getNormalizationSchema in core/
modules/ jsonapi/ src/ Normalizer/ FieldNormalizer.php - Retrieve JSON Schema for the normalization.
- JsonApiDocumentTopLevelNormalizer::getNormalizationSchema in core/
modules/ jsonapi/ src/ Normalizer/ JsonApiDocumentTopLevelNormalizer.php - Retrieve JSON Schema for the normalization.
- MarkupNormalizer::getNormalizationSchema in core/
modules/ serialization/ src/ Normalizer/ MarkupNormalizer.php - Retrieve JSON Schema for the normalization.
- NullNormalizer::getNormalizationSchema in core/
modules/ serialization/ src/ Normalizer/ NullNormalizer.php - Retrieve JSON Schema for the normalization.
File
-
core/
modules/ serialization/ src/ Normalizer/ SchematicNormalizerTrait.php, line 53
Class
- SchematicNormalizerTrait
- Trait for normalizers which can also provide JSON Schema.
Namespace
Drupal\serialization\NormalizerCode
protected function getNormalizationSchema(mixed $object, array $context = []) : array {
return $this->getJsonSchemaForMethod($this, 'doNormalize', [
'$comment' => static::generateNoSchemaAvailableMessage($object),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.