Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293938

Unable to alter local actions prior to rendering

$
0
0

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.


Viewing all articles
Browse latest Browse all 293938

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>