By joegraduate on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.5.x
Introduced in version:
11.5.0
Issue links:
Description:
The hook hook_ENTITY_TYPE_insert() no longer creates system actions for adding and removing roles from a user when a user role is created. The actions are system.action.user_add_role_action.<role_id> and system.action.user_remove_role_action.<role_id>.
These actions can now be added via the configuration API, either through configuration synchronization or as configuration entities included in an install profile or a recipe.
user_add_role and user_remove_role system actions are still automatically created when a role is created via the Drupal admin UI.
Impacts:
Module developers
Site templates, recipes and distribution developers