You are here

class ContentEntityNormalizer in JSON:API Extras 8

Same name and namespace in other branches
  1. 8.2 src/Normalizer/ContentEntityNormalizer.php \Drupal\jsonapi_extras\Normalizer\ContentEntityNormalizer

Override ContentEntityNormalizer to prepare input.

Hierarchy

Expanded class hierarchy of ContentEntityNormalizer

1 string reference to 'ContentEntityNormalizer'
jsonapi_extras.services.yml in ./jsonapi_extras.services.yml
jsonapi_extras.services.yml
1 service uses ContentEntityNormalizer
serializer.normalizer.entity.jsonapi_extras in ./jsonapi_extras.services.yml
Drupal\jsonapi_extras\Normalizer\ContentEntityNormalizer

File

src/Normalizer/ContentEntityNormalizer.php, line 10

Namespace

Drupal\jsonapi_extras\Normalizer
View source
class ContentEntityNormalizer extends JsonapiContentEntityNormalizer {
  use EntityNormalizerTrait;

}

Members

Namesort descending Modifiers Type Description Overrides
CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY constant Name of key for bubbling cacheability metadata via serialization context.
EntityNormalizer::$entityTypeManager protected property The entity type manager.
EntityNormalizer::$formats protected property The formats that the Normalizer can handle. Overrides NormalizerBase::$formats
EntityNormalizer::$linkManager protected property The link manager.
EntityNormalizer::$resourceTypeRepository protected property The JSON API resource type repository.
EntityNormalizer::$supportedInterfaceOrClass protected property The interface or class that this Normalizer supports. Overrides NormalizerBase::$supportedInterfaceOrClass 1
EntityNormalizer::denormalize public function Denormalizes data back into an object of the given class.
EntityNormalizer::getFieldItemInstance protected function Gets a field item instance for use with SerializedColumnNormalizerTrait.
EntityNormalizer::getFieldNames protected function Gets the field names for the given entity.
EntityNormalizer::getFields protected function Gets the field names for the given entity. 1
EntityNormalizer::serializeField protected function Serializes a given field. 1
EntityNormalizer::__construct public function Constructs an EntityNormalizer object.
EntityNormalizerTrait::getResourceConfig protected function Get the configuration entity based on the entity type and bundle.
EntityNormalizerTrait::normalize public function
EntityNormalizerTrait::prepareInput protected function Prepares the input data to create the entity.
NormalizerBase::$format protected property List of formats which supports (de-)normalization. 3
NormalizerBase::addCacheableDependency protected function Adds cacheability if applicable.
NormalizerBase::checkFormat protected function Checks if the provided format is supported by this normalizer. 2
NormalizerBase::supportsDenormalization public function Implements \Symfony\Component\Serializer\Normalizer\DenormalizerInterface::supportsDenormalization() Overrides NormalizerBase::supportsDenormalization
NormalizerBase::supportsNormalization public function Checks whether the given class is supported for normalization by this normalizer. Overrides NormalizerBase::supportsNormalization
SerializedColumnNormalizerTrait::checkForSerializedStrings protected function Checks if there is a serialized string for a column.
SerializedColumnNormalizerTrait::dataHasStringForSerializeColumn protected function Checks if the data contains string value for serialize column.
SerializedColumnNormalizerTrait::getCustomSerializedPropertyNames protected function Gets the names of all properties the plugin treats as serialized data.
SerializedColumnNormalizerTrait::getSerializedPropertyNames protected function Gets the names of all serialized properties.