protected function SyncNormalizerDecoratorTrait::decorateDenormalizedEntity in Content Synchronization 3.0.x
Same name and namespace in other branches
- 8.2 src/Plugin/SyncNormalizerDecoratorTrait.php \Drupal\content_sync\Plugin\SyncNormalizerDecoratorTrait::decorateDenormalizedEntity()
1 call to SyncNormalizerDecoratorTrait::decorateDenormalizedEntity()
- ContentEntityNormalizer::denormalize in src/
Normalizer/ ContentEntityNormalizer.php
File
- src/
Plugin/ SyncNormalizerDecoratorTrait.php, line 27
Class
Namespace
Drupal\content_sync\PluginCode
protected function decorateDenormalizedEntity(ContentEntityInterface $entity, array $normalized_entity, $format, array $context = []) {
$plugins = $this
->getDecoratorManager()
->getDefinitions();
foreach ($plugins as $decorator) {
/* @var $instance SyncNormalizerDecoratorInterface */
$instance = $this
->getDecoratorManager()
->createInstance($decorator['id']);
$instance
->decorateDenormalizedEntity($entity, $normalized_entity, $format, $context);
}
}