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.
Problem/Motivation
This is a followup issue for #1535868: Convert all blocks into plugins.
- On
admin/structure/block
, the purpose of the "Block library" local action link is unclear and does not make sense out of context (for translation, accessibility, etc.) - "Block Library" is the label provided for
BlockPluginUI
in its annotation, and thePluginUI
API apparently provides this local action automatically.
Proposed resolution
- Change the link text to "Add block".
- Decide if the annotation label should be changed directly, or if the link should be altered, or if the way the link is added by the plugin UI should be changed in general.
Remaining tasks
Related issues
Comment | File | Size | Author |
---|---|---|---|
#4 | block-label-1874584-4.patch | 642 bytes | kim.pepper |
Comments
Comment #1
xjmComment #2
Bojhan CreditAttribution: Bojhan commentedMakin patch
Comment #3
xjmComment #4
kim.pepperI've attached a simple patch that renames the title from "Block Library" to "Add block".
Comment #5
Bojhan CreditAttribution: Bojhan commentedSorry, somehow this fell of my radar. RTBC
Comment #6
Dries CreditAttribution: Dries commentedDo we want to leave the other references to 'library' in the UI/URLs?
Comment #7
droplet CreditAttribution: droplet commentedAdd Block is unclear. First glance at the page, I'd think "Add Block" == "Add Custom Block"
Comment #8
Bojhan CreditAttribution: Bojhan commented@droplet from my pov, is that simply a legacy thing. I dont think many new users will be confused, nor would it be a big hump for exciting users and its more consistent with local actions in general.
Comment #9
webchickYes, please.
I clicked around and didn't notice any other references to the term "block library," so I think we're good there.
Committed and pushed to 8.x. Thanks!
Comment #11
YesCT CreditAttribution: YesCT commentedwhile discussing my clock confusion in irc, the concept of a block library was helpful.
Not having the button named library and having the 'Add block' button is good.
But
#1956362: Name the page that lists block plugins, now: Blocks and Add Blocks, better: Block Library
considers what to name the page that the 'Add block' button leads to.
Comment #12
xjm#1950700: Rename "Add block" to "Place block" on the blocks admin page
Comment #12.0
xjmUpdated issue summary.