function ChainBreadcrumbBuilderInterface::addBuilder

Same name in other branches
  1. 9 core/lib/Drupal/Core/Breadcrumb/ChainBreadcrumbBuilderInterface.php \Drupal\Core\Breadcrumb\ChainBreadcrumbBuilderInterface::addBuilder()
  2. 10 core/lib/Drupal/Core/Breadcrumb/ChainBreadcrumbBuilderInterface.php \Drupal\Core\Breadcrumb\ChainBreadcrumbBuilderInterface::addBuilder()
  3. 11.x 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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.