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 amateescu on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.7.x
Introduced in version:
8.7.0
Issue links:
Description:
Some modules need to act before an entity is loaded, and swap out the default revision with a different one. For example, the Workspaces module swaps the default revision with a workspace-specific revision, if one exists.
For this use case, a new hook_entity_preload()
has been added in Drupal 8.7.0.
Impacts:
Module developers