Problem/Motivation
This issue is the first step in wider move
π±
[meta] Reorganize Block items in the administration menu
Active
, which was discussed and agreed as part of
#3316853: Drupal Usability Meeting 2022-10-28 β
.
When the comment, node and media modules are enabled, the following admin links are easily accessible at /admin/structure:
- Comment types (/admin/structure/comment)
- Content types (/admin/structure/types)
- Media types (/admin/structure/media)
However, for the new user, it is not immediately obvious that in order to add/edit a Block type you have to:
- Click on Block layout (/admin/structure/block)
- Click the Custom block library tab (/admin/structure/block/block-content)
- Click the Block types link (/admin/structure/block/block-content/types)
Proposed resolution
Move the "Block types" page from /admin/structure/block/block-content/types
to /admin/structure/block-content
. Update the child pages (add, edit, delete, etc.) to match.
That page used to be a second-level tab on /admin/structure/block/block-content
, and used the same page title, "Custom block library". Make it is a separate page, and change the title to "Custom block types".
Add a "Block types" link to the top level of the Structure menu to align it with other core modules that provide bundles.
Update implementations of hook_help()
and Help Topics to reflect these changes. Remove the help text from /admin/structure/block-content
for consistency with other entity types. (See Comments #89, #90, and #96.)
Update automated tests.
Remaining tasks
User interface changes
Before patch:
After patch:
Before the patch, there are two second-level tabs on the Custom block library:
After the patch, both second-level tabs are gone:
API changes
None
Data model changes
None