You are here

interface SyncNormalizerDecoratorInterface in Content Synchronization 8.2

Same name and namespace in other branches
  1. 3.0.x src/Plugin/SyncNormalizerDecoratorInterface.php \Drupal\content_sync\Plugin\SyncNormalizerDecoratorInterface

Defines an interface for Sync normalizer decorator plugins.

Hierarchy

Expanded class hierarchy of SyncNormalizerDecoratorInterface

All classes that implement SyncNormalizerDecoratorInterface

File

src/Plugin/SyncNormalizerDecoratorInterface.php, line 11

Namespace

Drupal\content_sync\Plugin
View source
interface SyncNormalizerDecoratorInterface extends PluginInspectionInterface {

  /**
   * Apply decoration for the normalization process.
   */
  public function decorateNormalization(array &$normalized_entity, ContentEntityInterface $entity, $format, array $context = []);

  /**
   * Apply decoration for the denormalization process.
   */
  public function decorateDenormalization(array &$normalized_entity, $type, $format, array $context = []);

  /**
   * Apply decoration to the entity after the denormalization process is done.
   */
  public function decorateDenormalizedEntity(ContentEntityInterface $entity, array $normalized_entity, $format, array $context = []);

}

Members

Namesort descending Modifiers Type Description Overrides
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2
SyncNormalizerDecoratorInterface::decorateDenormalization public function Apply decoration for the denormalization process. 1
SyncNormalizerDecoratorInterface::decorateDenormalizedEntity public function Apply decoration to the entity after the denormalization process is done. 1
SyncNormalizerDecoratorInterface::decorateNormalization public function Apply decoration for the normalization process. 1