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 fago on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Introduced in version:
8.0.0-beta10
Issue links:
Description:
Before #2346373: Data reference validation constraints are applied wrong validation constraints for entities and entity references (such as EntityType and Bundle) received either the Typed data object wrapping the $entity or the $entity object directly - depending on whether the constraint was put on entity level or on an entity reference.
Now, the constraint validator always receives the entity object.
Note: For implementing entity-level constraints see the following change record: https://www.drupal.org/node/2438011
Impacts:
Module developers