Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
By xjm on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Description:
- All entity deletion hooks are now invoked after the entity is deleted. (Previously, nodes, users, and files invoked the delete hooks first.)
- Predeletion hooks have been added for all entity types.
API Changes
- The following hooks have been added:
- hook_entity_predelete()
- hook_taxonomy_term_predelete()
- hook_taxonomy_vocabulary_predelete()
- hook_comment_predelete()
- hook_node_predelete()
- hook_user_predelete()
- hook_file_predelete()
- All core implementations of the following hooks have been changed:
- hook_node_delete() to hook_node_predelete()
- hook_user_delete() to hook_user_predelete()
- hook_file_delete() to hook_file_predelete()
Impact on contributed modules
- Contributed and custom modules should evaluate whether it is appropriate to change their implementations of
hook_entity_delete()
,hook_node_delete()
,hook_user_delete()
, andhook_file_delete()
to predelete hooks instead.
Impacts:
Module developers