Menu blocks specific to Navigation are leaking into the Block layout UI

Created on 20 November 2024, about 1 month ago

Problem/Motivation

The navigation module defines a set of derivative block plugins for each of the defined menus on your Drupal site. These blocks are meant to be used exclusively within the Navigation and not meant to be generally usable as blocks in the rest of your site. However, at present, b/c these are defined as block derivatives, they are leaking into the Block layout UI:

Steps to reproduce

  • Install Drupal core standard profile on latest 11.x
  • Enable navigation module
  • Browse to Structure > Block layout
  • Click "Place block"
  • Scroll the list and notice there are blocks listed in the "Menus (Navigation)" category

Proposed resolution

Update code to exclude all navigation_menu block plugin derivatives.

Remaining tasks

Patch

User interface changes

All navigation-specific blocks should be hidden from the Block layout UI

🐛 Bug report
Status

Active

Version

11.1 🔥

Component

navigation.module

Created by

🇨🇦Canada m4olivei Grimsby, ON

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024