Change record status: 
Project: 
Introduced in branch: 
8.0.x
Introduced in version: 
8.0.0-beta10
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
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done