Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By damiankloip on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.3.x
Introduced in version:
8.3.0
Issue links:
Description:
When denormalizing fieldable entities previously, all entity values were passed to the entity create()
method and the object was constructed via the entity system alone. The serialization module now supports field level denormalization, similar to the hal module. So custom denormalization behaviour at the field level is now possible, with each set of field values being passed along.
See \Drupal\serialization\Normalizer\FieldNormalizer::denormalize()
and \Drupal\serialization\Normalizer\FieldItemNormalizer::denormalize()
for examples of this in the core serialization module.
Impacts:
Module developers