BreadcrumbManager

Provides a breadcrumb manager.

Can be assigned any number of BreadcrumbBuilderInterface objects by calling the addBuilder() method. When build() is called it iterates over the objects in priority order and uses the first one that returns TRUE from BreadcrumbBuilderInterface::applies() to build the breadcrumbs.

Hierarchy

See also

\Drupal\Core\DependencyInjection\Compiler\RegisterBreadcrumbBuilderPass

File

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

Namespace

Drupal\Core\Breadcrumb

Members

Name Modifiers Type Description
BreadcrumbManager::$builders protected property Holds arrays of breadcrumb builders, keyed by priority.
BreadcrumbManager::$moduleHandler protected property The module handler to invoke the alter hook.
BreadcrumbManager::$sortedBuilders protected property Holds the array of breadcrumb builders sorted by priority.
BreadcrumbManager::addBuilder public function Adds another breadcrumb builder. Overrides ChainBreadcrumbBuilderInterface::addBuilder
BreadcrumbManager::applies public function Whether this breadcrumb builder should be used to build the breadcrumb. Overrides BreadcrumbBuilderInterface::applies
BreadcrumbManager::build public function Builds the breadcrumb. Overrides BreadcrumbBuilderInterface::build
BreadcrumbManager::getSortedBuilders protected function Returns the sorted array of breadcrumb builders.
BreadcrumbManager::__construct public function Constructs a \Drupal\Core\Breadcrumb\BreadcrumbManager object.
doc_Drupal
2016-10-29 08:48:43
Comments
Leave a Comment

Please login to continue.