Unable to alter local actions prior to rendering

Created on 9 October 2015, over 9 years ago
Updated 2 February 2023, about 2 years ago

Problem/Motivation

There are some inconsistencies between how local tasks and local actions are handled.

For local tasks, there are 2 hooks:

For local actions, there is only one hook, and the naming convention is actually the opposite of local tasks:

Proposed resolution

Introduce a new hook_local_actions_render_alter() executed prior to rendering.
Rename existing hook_menu_local_tasks_alter() to hook_local_tasks_render_alter() for the consistency.

Remaining tasks

Review, commit.

API changes

New hook_local_actions_render_alter() hook is added.
Existing hook_menu_local_tasks_alter() hook is deprecated and renamed to hook_local_tasks_render_alter().

See the change record for more details - https://www.drupal.org/node/3028611 β†’ .

πŸ“Œ Task
Status

Needs work

Version

10.1 ✨

Component
Menu systemΒ  β†’

Last updated 11 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States jhedstrom Portland, OR

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024