Problem/Motivation
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.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | local_actions_allow_do_not_cache.patch | 512 bytes | blade_ukraine |
Comments
Comment #2
blade_ukraine commentedNow 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()`
Comment #3
blade_ukraine commentedComment #4
blade_ukraine commentedfixed patch.
Comment #5
quietone commentedChanges are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies.
Also restoring standard issue template.
Comment #6
blade_ukraine commentedComment #7
smustgrave commented1. Fixes should be in MRs vs patches
2. This was categorized as a bug but not sure I see the bug? Tagging for steps to reproduce this as a bug
3. Issue summary should be complete, bugs should have least steps to reproduce and proposed solution.
4. Bugs should include test coverage to show the issue.
Thanks.