class ContentEntityNormalizer in JSON:API Extras 8
Same name and namespace in other branches
- 8.2 src/Normalizer/ContentEntityNormalizer.php \Drupal\jsonapi_extras\Normalizer\ContentEntityNormalizer
Override ContentEntityNormalizer to prepare input.
Hierarchy
- class \Drupal\serialization\Normalizer\NormalizerBase implements \Symfony\Component\Serializer\SerializerAwareInterface, CacheableNormalizerInterface uses \Symfony\Component\Serializer\SerializerAwareTrait
- class \Drupal\jsonapi\Normalizer\NormalizerBase
- class \Drupal\jsonapi\Normalizer\EntityNormalizer implements \Symfony\Component\Serializer\Normalizer\DenormalizerInterface uses SerializedColumnNormalizerTrait
- class \Drupal\jsonapi\Normalizer\ContentEntityNormalizer
- class \Drupal\jsonapi_extras\Normalizer\ContentEntityNormalizer uses EntityNormalizerTrait
- class \Drupal\jsonapi\Normalizer\ContentEntityNormalizer
- class \Drupal\jsonapi\Normalizer\EntityNormalizer implements \Symfony\Component\Serializer\Normalizer\DenormalizerInterface uses SerializedColumnNormalizerTrait
- class \Drupal\jsonapi\Normalizer\NormalizerBase
Expanded class hierarchy of ContentEntityNormalizer
1 string reference to 'ContentEntityNormalizer'
1 service uses ContentEntityNormalizer
File
- src/
Normalizer/ ContentEntityNormalizer.php, line 10
Namespace
Drupal\jsonapi_extras\NormalizerView source
class ContentEntityNormalizer extends JsonapiContentEntityNormalizer {
use EntityNormalizerTrait;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableNormalizerInterface:: |
constant | Name of key for bubbling cacheability metadata via serialization context. | ||
EntityNormalizer:: |
protected | property | The entity type manager. | |
EntityNormalizer:: |
protected | property |
The formats that the Normalizer can handle. Overrides NormalizerBase:: |
|
EntityNormalizer:: |
protected | property | The link manager. | |
EntityNormalizer:: |
protected | property | The JSON API resource type repository. | |
EntityNormalizer:: |
protected | property |
The interface or class that this Normalizer supports. Overrides NormalizerBase:: |
1 |
EntityNormalizer:: |
public | function | Denormalizes data back into an object of the given class. | |
EntityNormalizer:: |
protected | function | Gets a field item instance for use with SerializedColumnNormalizerTrait. | |
EntityNormalizer:: |
protected | function | Gets the field names for the given entity. | |
EntityNormalizer:: |
protected | function | Gets the field names for the given entity. | 1 |
EntityNormalizer:: |
protected | function | Serializes a given field. | 1 |
EntityNormalizer:: |
public | function | Constructs an EntityNormalizer object. | |
EntityNormalizerTrait:: |
protected | function | Get the configuration entity based on the entity type and bundle. | |
EntityNormalizerTrait:: |
public | function | ||
EntityNormalizerTrait:: |
protected | function | Prepares the input data to create the entity. | |
NormalizerBase:: |
protected | property | List of formats which supports (de-)normalization. | 3 |
NormalizerBase:: |
protected | function | Adds cacheability if applicable. | |
NormalizerBase:: |
protected | function | Checks if the provided format is supported by this normalizer. | 2 |
NormalizerBase:: |
public | function |
Implements \Symfony\Component\Serializer\Normalizer\DenormalizerInterface::supportsDenormalization() Overrides NormalizerBase:: |
|
NormalizerBase:: |
public | function |
Checks whether the given class is supported for normalization by this normalizer. Overrides NormalizerBase:: |
|
SerializedColumnNormalizerTrait:: |
protected | function | Checks if there is a serialized string for a column. | |
SerializedColumnNormalizerTrait:: |
protected | function | Checks if the data contains string value for serialize column. | |
SerializedColumnNormalizerTrait:: |
protected | function | Gets the names of all properties the plugin treats as serialized data. | |
SerializedColumnNormalizerTrait:: |
protected | function | Gets the names of all serialized properties. |