You are here

public function ChainBreadcrumbBuilderInterface::addBuilder in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Breadcrumb/ChainBreadcrumbBuilderInterface.php \Drupal\Core\Breadcrumb\ChainBreadcrumbBuilderInterface::addBuilder()

Adds another breadcrumb builder.

Parameters

\Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface $builder: The breadcrumb builder to add.

int $priority: Priority of the breadcrumb builder.

1 method overrides ChainBreadcrumbBuilderInterface::addBuilder()
BreadcrumbManager::addBuilder in core/lib/Drupal/Core/Breadcrumb/BreadcrumbManager.php
Adds another breadcrumb builder.

File

core/lib/Drupal/Core/Breadcrumb/ChainBreadcrumbBuilderInterface.php, line 18

Class

ChainBreadcrumbBuilderInterface
Defines an interface a chained service that builds the breadcrumb.

Namespace

Drupal\Core\Breadcrumb

Code

public function addBuilder(BreadcrumbBuilderInterface $builder, $priority);