Problem/Motivation
You can't really nice dynamically register "appears_on" for local action plugins.
Proposed resolution
3 ... 2 ... 1 ... Discuss!
Remaining tasks
API changes
(API changes/additions that would affect module, install profile, and theme developers, including examples of before/after code if appropriate.)
Related Issues
#2058321: Move the 'place block' UI into the block listing
#2050227: Add local action plugin deriver to use YAML discovery for static definitions
Comments
Comment #1
tim.plunkettTagging
Comment #2
xjmFor a bit more context, here's what it takes to put an "Add custom block" button on each theme subtab of
admin/structure/block:Comment #3
dawehnerIf we switch to yml based discovery we safe quite a lot of all the use statements.
The main reason why this seems so complex is that we went with allowing appearance based upon routes instead of paths.
This will become problematic if you add a new route you want this plugin to appear on. Previously it worked automatically because it was based upon the path, but now you need to alter it.
Comment #3.0
dawehnerUpdated issue summary.
Comment #17
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #18
smustgrave commentedSince there hasn't been a follow up going to close out, but don't worry we can always re-open!
Thanks all