- Issue created by @blade_ukraine
- πΊπ¦Ukraine blade_ukraine
Now you should be able to call
\Drupal::service('plugin.manager.menu.local_action')->useCaches(FALSE);
for example, in `hook_block_build_local_actions_block_alter()`
I need to skip caching for the local actions menu.
As default in the plugin, we have the variable $this->useCaches and the method useCaches(FALSE/TRUE) to override the value of that variable. However, the local action plugin does not use that and always applies cache to the links.
Active
10.3 β¨
menu system
Now you should be able to call
\Drupal::service('plugin.manager.menu.local_action')->useCaches(FALSE);
for example, in `hook_block_build_local_actions_block_alter()`