Drupal 8  8.0.2
TermBreadcrumbBuilder Class Reference
Inheritance diagram for TermBreadcrumbBuilder:

Public Member Functions

 __construct (EntityManagerInterface $entityManager)
 
 applies (RouteMatchInterface $route_match)
 
 build (RouteMatchInterface $route_match)
 

Protected Attributes

 $entityManager
 
 $termStorage
 

Detailed Description

Provides a custom taxonomy breadcrumb builder that uses the term hierarchy.

Constructor & Destructor Documentation

__construct ( EntityManagerInterface  $entityManager)

Constructs the TermBreadcrumbBuilder.

Parameters
\Drupal\Core\Entity\EntityManagerInterface$entityManagerThe entity manager.

References Drupal\entityManager(), and EntityTypeManagerInterface\getStorage().

Here is the call graph for this function:

Member Function Documentation

applies ( RouteMatchInterface  $route_match)

{Whether this breadcrumb builder should be used to build the breadcrumb.

Parameters
\Drupal\Core\Routing\RouteMatchInterface$route_matchThe current route match.
Returns
bool TRUE if this builder should be used or FALSE to let other builders decide.
}

Implements BreadcrumbBuilderInterface.

References RouteMatchInterface\getParameter(), and RouteMatchInterface\getRouteName().

Here is the call graph for this function:

build ( RouteMatchInterface  $route_match)

{Builds the breadcrumb.

Parameters
\Drupal\Core\Routing\RouteMatchInterface$route_matchThe current route match.
Returns
A breadcrumb.
}

Implements BreadcrumbBuilderInterface.

References Link\createFromRoute(), Drupal\entityManager(), RouteMatchInterface\getParameter(), and t().

Here is the call graph for this function:


The documentation for this class was generated from the following file: