Drupal 8  8.0.2
BookBreadcrumbBuilder Class Reference
Inheritance diagram for BookBreadcrumbBuilder:

Public Member Functions

 __construct (EntityManagerInterface $entity_manager, AccessManagerInterface $access_manager, AccountInterface $account)
 
 applies (RouteMatchInterface $route_match)
 
 build (RouteMatchInterface $route_match)
 

Protected Attributes

 $nodeStorage
 
 $accessManager
 
 $account
 

Detailed Description

Provides a breadcrumb builder for nodes in a book.

Constructor & Destructor Documentation

__construct ( EntityManagerInterface  $entity_manager,
AccessManagerInterface  $access_manager,
AccountInterface  $account 
)

Constructs the BookBreadcrumbBuilder.

Parameters
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager service.
\Drupal\Core\Access\AccessManagerInterface$access_managerThe access manager.
\Drupal\Core\Session\AccountInterface$accountThe current user account.

References Drupal\accessManager(), 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().

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(), RouteMatchInterface\getParameter(), and t().

Here is the call graph for this function:


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