You are here

class DeletedFlagItemListNormalizer in Replication 8

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

Hierarchy

Expanded class hierarchy of DeletedFlagItemListNormalizer

1 string reference to 'DeletedFlagItemListNormalizer'
replication.services.yml in ./replication.services.yml
replication.services.yml
1 service uses DeletedFlagItemListNormalizer
replication.normalizer.deleted_flag_item_list in ./replication.services.yml
Drupal\replication\Normalizer\DeletedFlagItemListNormalizer

File

src/Normalizer/DeletedFlagItemListNormalizer.php, line 8

Namespace

Drupal\replication\Normalizer
View 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

Namesort descending Modifiers Type Description Overrides
CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY constant Name of key for bubbling cacheability metadata via serialization context.
DeletedFlagItemListNormalizer::$supportedInterfaceOrClass protected property Overrides NormalizerBase::$supportedInterfaceOrClass
DeletedFlagItemListNormalizer::denormalize public function Denormalizes data back into an object of the given class.
DeletedFlagItemListNormalizer::normalize public function Normalizes an object into a set of arrays/scalars.
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() 1
NormalizerBase::supportsNormalization public function Checks whether the given class is supported for normalization by this normalizer. 1