Drupal 8  8.0.2
ForumBreadcrumbBuilderBase Class Reference
Inheritance diagram for ForumBreadcrumbBuilderBase:

Public Member Functions

 __construct (EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory, ForumManagerInterface $forum_manager)
 
 build (RouteMatchInterface $route_match)
 
- Public Member Functions inherited from BreadcrumbBuilderInterface
 applies (RouteMatchInterface $route_match)
 

Protected Attributes

 $config
 
 $entityManager
 
 $forumManager
 

Detailed Description

Provides a forum breadcrumb base class.

This just holds the dependency-injected config, entity manager, and forum manager objects.

Constructor & Destructor Documentation

__construct ( EntityManagerInterface  $entity_manager,
ConfigFactoryInterface  $config_factory,
ForumManagerInterface  $forum_manager 
)

Constructs a forum breadcrumb builder object.

Parameters
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager.
\Drupal\Core\Config\ConfigFactoryInterface$config_factoryThe configuration factory.
\Drupal\forum\ForumManagerInterface$forum_managerThe forum manager service.

References Drupal\config(), Drupal\entityManager(), and ConfigFactoryInterface\get().

Here is the call graph for this function:

Member Function Documentation

build ( RouteMatchInterface  $route_match)

{Builds the breadcrumb.

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

Implements BreadcrumbBuilderInterface.

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

Here is the call graph for this function:


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