Error on "Add block" link

Created on 19 February 2025, about 1 month ago

Problem/Motivation

Alter logic does not seem to work anymore in Drupal 11.1, since hooks are now OOP.

Steps to reproduce

- Install Drupal 11.1 (I used 11.1.2)
- Go to `/admin/config/user-interface/navigation-block`
- Click "Add block" in sidebar
- Error is triggered, because `navigation_plugin_filter_block__layout_builder_alter()` no longer exists.

Proposed resolution

Call `\Drupal\navigation\Hook\NavigationHooks::pluginFilterLayoutLayoutBuilderAlter()` for newer Drupal versions

Remaining tasks

- Update code with backwards compatibility layer

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium svendecabooter Gent

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