diff --git a/src/BusinessRulesBreadcrumb.php b/src/BusinessRulesBreadcrumb.php index 24f0dd6..d084ff7 100644 --- a/src/BusinessRulesBreadcrumb.php +++ b/src/BusinessRulesBreadcrumb.php @@ -5,6 +5,7 @@ namespace Drupal\business_rules; use Drupal\Core\Link; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\system\PathBasedBreadcrumbBuilder; +use Drupal\Core\Cache\CacheableMetadata; /** * Adjust the breadcrumbs for the Business Rules module. @@ -16,7 +17,7 @@ class BusinessRulesBreadcrumb extends PathBasedBreadcrumbBuilder { /** * {@inheritdoc} */ - public function applies(RouteMatchInterface $route_match) { + public function applies(RouteMatchInterface $route_match, ?CacheableMetadata $cacheable_metadata = null) { $route_name = $route_match->getRouteName(); if (stristr($route_name, 'entity.business_rule')) { return TRUE;