Skip to content
Snippets Groups Projects
Commit 08c9054e authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2181601 by damiankloip:...

Issue #2181601 by damiankloip: Drupal\serialization\Normalizer\EntityNormalizer should extend ComplexDataNormalizer.
parent 808eb743
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
/** /**
* Normalizes/denormalizes Drupal entity objects into an array structure. * Normalizes/denormalizes Drupal entity objects into an array structure.
*/ */
class EntityNormalizer extends NormalizerBase implements DenormalizerInterface { class EntityNormalizer extends ComplexDataNormalizer implements DenormalizerInterface {
/** /**
* The interface or class that this Normalizer supports. * The interface or class that this Normalizer supports.
...@@ -40,18 +40,6 @@ public function __construct(EntityManagerInterface $entity_manager) { ...@@ -40,18 +40,6 @@ public function __construct(EntityManagerInterface $entity_manager) {
$this->entityManager = $entity_manager; $this->entityManager = $entity_manager;
} }
/**
* {@inheritdoc}
*/
public function normalize($object, $format = NULL, array $context = array()) {
$attributes = array();
foreach ($object as $name => $field) {
$attributes[$name] = $this->serializer->normalize($field, $format);
}
return $attributes;
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment