Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Posted by xjm
Problem/Motivation
This is a followup issue for #1535868: Convert all blocks into plugins.
- The PluginUI API introduced in #1535868: Convert all blocks into plugins has not undergone architectural review.
- If a layout builder workflow is added to core, most of this UI will probably be replaced. However, if the plugin UI API is not cleaned up before Feb. 18, it needs to be improved separately.
Proposed resolution
- Review the
PluginUI
class, theBlockPluginUI
implementation, their derivative classes, and the use ofPluginUI
objects in the block module's procedural code. - Refine or refactor these classes as needed.
Comments
Comment #1
sunHm, there's nothing to review here yet. Let's re-add the Needs architectural review tag when there is a true + elaborate summary of what actually needs architectural review. (Note that tagged issues are syndicated via RSS and also @drupalchanges on Twitter.)
Comment #2
xjm@sun, yes there is code to review, it's just in the patch in #1535868: Convert all blocks into plugins. In a couple days it will be in core, though. Edit: though you're right, we actually shouldn't be looking at this until after Feb. 18, which is why the issue is postponed.
Comment #3
xjmComment #3.0
xjmUpdated issue summary.
Comment #4
catchThis could do with an issue summary on what exactly needs review.
Comment #5
xjmClosing as duplicate of #2056513: Remove PluginUI subsystem, provide block plugins UI as one-off.
Comment #5.0
xjmRemoving myself from the author field so that I can unfollow the issue. --xjm