Breadcrumb does not work on route from views or page_manager with token replacement

Created on 12 October 2023, about 1 year ago
Updated 13 October 2023, about 1 year ago

Problem/Motivation

Hi,
we are using the contrib module Page manager and creating routes with it. For these routes, we want to use breadcrumbs. It will fail with view routes, too.
With this introduced change https://git.drupalcode.org/project/context_breadcrumb/-/commit/3d9d7867a... we get a PHP error The "base_route_name" entity type does not exist. or for views The "view_id" entity type does not exist. because the base_route_name is a param from the route; therefore this line

if (!is_object($param_object) && $storage = $this->entityManager->getStorage($key)) {

cannot be executed because $this->entityManager->getStorage('base_route_name') does not exist

Steps to reproduce

  1. Install page manager
  2. Create a page / route
  3. Create a context breadcrumb for this route with token replacement
  4. Visit this route and check watchdog log
  1. Create for example a term view with a page plugin
  2. Create a context breadcrumb for this route with token replacement
  3. Visit this route and check watchdog log
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany mvogel

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

Comments & Activities

Production build 0.71.5 2024