class DataDefinitionStringNormalizer in JSON:API Schema 8
Data definition normalizer.
Hierarchy
- class \Drupal\serialization\Normalizer\NormalizerBase implements \Symfony\Component\Serializer\SerializerAwareInterface, CacheableNormalizerInterface uses \Symfony\Component\Serializer\SerializerAwareTrait
- class \Drupal\jsonapi_schema\Normalizer\DataDefinitionNormalizer
- class \Drupal\jsonapi_schema\Normalizer\DataDefinitionStringNormalizer
- class \Drupal\jsonapi_schema\Normalizer\DataDefinitionNormalizer
Expanded class hierarchy of DataDefinitionStringNormalizer
1 string reference to 'DataDefinitionStringNormalizer'
1 service uses DataDefinitionStringNormalizer
File
- src/
Normalizer/ DataDefinitionStringNormalizer.php, line 10
Namespace
Drupal\jsonapi_schema\NormalizerView source
class DataDefinitionStringNormalizer extends DataDefinitionNormalizer {
/**
* {@inheritdoc}
*/
protected $supportedDataTypes = [
'filter_format',
'language_reference',
];
/**
* {@inheritdoc}
*/
protected function extractPropertyData(DataDefinitionInterface $property, array $context = []) {
$value = parent::extractPropertyData($property);
$value['type'] = 'string';
return $value;
}
}