class DeletedFlagItemListNormalizer in Replication 8
Same name and namespace in other branches
- 8.2 src/Normalizer/DeletedFlagItemListNormalizer.php \Drupal\replication\Normalizer\DeletedFlagItemListNormalizer
Hierarchy
- class \Drupal\serialization\Normalizer\NormalizerBase implements \Symfony\Component\Serializer\SerializerAwareInterface, CacheableNormalizerInterface uses \Symfony\Component\Serializer\SerializerAwareTrait
- class \Drupal\replication\Normalizer\DeletedFlagItemListNormalizer implements \Symfony\Component\Serializer\Normalizer\DenormalizerInterface
Expanded class hierarchy of DeletedFlagItemListNormalizer
1 string reference to 'DeletedFlagItemListNormalizer'
1 service uses DeletedFlagItemListNormalizer
File
- src/
Normalizer/ DeletedFlagItemListNormalizer.php, line 8
Namespace
Drupal\replication\NormalizerView source
class DeletedFlagItemListNormalizer extends NormalizerBase implements DenormalizerInterface {
/**
* @var string[]
*/
protected $supportedInterfaceOrClass = [
'Drupal\\multiversion\\Plugin\\Field\\FieldType\\DeletedFlagItemList',
];
/**
* {@inheritdoc}
*/
public function normalize($field, $format = NULL, array $context = []) {
return $field->value;
}
/**
* {@inheritdoc}
*/
public function denormalize($data, $class, $format = NULL, array $context = []) {
return [
[
'value' => $data,
],
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableNormalizerInterface:: |
constant | Name of key for bubbling cacheability metadata via serialization context. | ||
DeletedFlagItemListNormalizer:: |
protected | property |
Overrides NormalizerBase:: |
|
DeletedFlagItemListNormalizer:: |
public | function | Denormalizes data back into an object of the given class. | |
DeletedFlagItemListNormalizer:: |
public | function | Normalizes an object into a set of arrays/scalars. | |
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() | 1 |
NormalizerBase:: |
public | function | Checks whether the given class is supported for normalization by this normalizer. | 1 |