Add $pathmatcher to the MenuActiveTrail constructor

Created on 22 July 2025, 15 days ago

Problem/Motivation

Calling \Drupal\Core\Menu\MenuActiveTrail::__construct() without the $pathMatcher argument is deprecated in 11.2.0 and will be required in 12.0.0.
More information: https://www.drupal.org/node/3523495
The MenuBasedBreadcrumbBuilder has one call of the MenuActiveTrail constructor that misses the $pathMatcher argument.

Steps to reproduce

Proposed resolution

Add $pathMatcher to the call.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany lmoeni

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

Comments & Activities

Production build 0.71.5 2024