You are here

SyncNormalizerDecoratorBase.php in Content Synchronization 8.2

Same filename and directory in other branches
  1. 3.0.x src/Plugin/SyncNormalizerDecoratorBase.php

File

src/Plugin/SyncNormalizerDecoratorBase.php
View source
<?php

namespace Drupal\content_sync\Plugin;

use Drupal\Component\Plugin\PluginBase;
use Drupal\Core\Entity\ContentEntityInterface;

/**
 * Base class for Sync normalizer decorator plugins.
 */
abstract class SyncNormalizerDecoratorBase extends PluginBase implements SyncNormalizerDecoratorInterface {

  /**
   * {@inheritdoc}
   */
  public function decorateNormalization(array &$normalized_entity, ContentEntityInterface $entity, $format, array $context = []) {
  }

  /**
   * {@inheritdoc}
   */
  public function decorateDenormalization(array &$normalized_entity, $type, $format, array $context = []) {
  }

  /**
   * {@inheritdoc}
   */
  public function decorateDenormalizedEntity(ContentEntityInterface $entity, array $normalized_entity, $format, array $context = []) {
  }

}

Classes

Namesort descending Description
SyncNormalizerDecoratorBase Base class for Sync normalizer decorator plugins.