BusinessRulesBreadcrumb must be compatible with PathBasedBreadcrumbBuilder on Drupal 10.4.0 and above

Created on 7 January 2025, 11 days ago

Problem/Motivation

Error message / site crash after upgrading Drupal Core from 10.3.10 to 10.4.1:

Fatal error: Declaration of Drupal\business_rules\BusinessRulesBreadcrumb::applies(Drupal\Core\Routing\RouteMatchInterface $route_match) must be compatible with Drupal\system\PathBasedBreadcrumbBuilder::applies(Drupal\Core\Routing\RouteMatchInterface $route_match, ?Drupal\Core\Cache\CacheableMetadata $cacheable_metadata = null) in /var/www/docroot/modules/contrib/business_rules/src/BusinessRulesBreadcrumb.php on line 19

Then tried to upgrade to 10.4.0 and got the same error so it seems to be imcompatible from that module on.

Steps to reproduce

  1. Have a site running with Drupal 10.3.10 with Business rules 3.0.0-beta1
  2. Upgrade Drupal Core to 10.4.0 or 10.4.1 (I use composer)
  3. Try to run a drush command (ex: drush cr or drush updb) or try to refresh the site (same error message)

Proposed resolution

n/a

Remaining tasks

n/a

User interface changes

n/a

API changes

n/a

Data model changes

n/a

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada aarantes

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

Comments & Activities

Production build 0.71.5 2024