Loading core/modules/serialization/src/Normalizer/EntityNormalizer.php +1 −13 Changes for core/modules/serialization/src/Normalizer/EntityNormalizer.php: 1 added line, 13 removed lines. Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ /** * 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. Loading @@ -40,18 +40,6 @@ public function __construct(EntityManagerInterface $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} */ Loading Loading
core/modules/serialization/src/Normalizer/EntityNormalizer.php +1 −13 Changes for core/modules/serialization/src/Normalizer/EntityNormalizer.php: 1 added line, 13 removed lines. Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ /** * 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. Loading @@ -40,18 +40,6 @@ public function __construct(EntityManagerInterface $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} */ Loading