Skip to content

Commit

Permalink
Update ResearchBreadcrumbBuilder::applies declaration to be compatibl…
Browse files Browse the repository at this point in the history
…e with parent method

This changed with Drupal 10.4 https://www.drupal.org/node/3459274
  • Loading branch information
paul121 committed Jan 7, 2025
1 parent 722b126 commit 4adf491
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Drupal\farm_rothamsted_experiment_research\Breadcrumb;

use Drupal\Core\Breadcrumb\Breadcrumb;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Link;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
Expand All @@ -18,7 +19,7 @@ class ResearchBreadcrumbBuilder extends PathBasedBreadcrumbBuilder {
/**
* {@inheritdoc}
*/
public function applies(RouteMatchInterface $route_match) {
public function applies(RouteMatchInterface $route_match, ?CacheableMetadata $cacheable_metadata = NULL) {

// Only apply to experiment plans.
if ($route_match->getRouteName() == 'entity.plan.canonical') {
Expand Down

0 comments on commit 4adf491

Please sign in to comment.