Provide a way for other modules to flag block plugin implementations as 'navigation safe'

Created on 26 April 2024, 8 months ago

Problem/Motivation

In the present state of the core inclusion MR, we're missing a way for module authors to mark a Block plugin implementation as 'navigation safe', and listed for use in the Navigation admin UI (/admin/config/user-interface/navigation-block).

Steps to reproduce

As a module author, create a new Block plugin (drush gen module && drush gen block). At this point there should be a way to mark it as 'navigation safe', but there isn't on account of the core navigation module having a static list of approved blocks:

https://git.drupalcode.org/issue/drupal-3438895/-/blob/3438895-add-the-n...
https://git.drupalcode.org/issue/drupal-3438895/-/blob/3438895-add-the-n...

Proposed resolution

Provide a way for module authors to mark block plugins as 'navigation safe'.

Remaining tasks

  • Decide on architectural approach. Is there any precedant for marking a class of Blocks for a narrow purpose?
  • Implementaiton

User interface changes

@todo

API changes

@todo

Data model changes

@todo

📌 Task
Status

Active

Version

1.0

Component
Navigation 

Last updated about 13 hours ago

No maintainer
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