You are here

public function ForumBreadcrumbBuilderBase::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/forum/src/Breadcrumb/ForumBreadcrumbBuilderBase.php \Drupal\forum\Breadcrumb\ForumBreadcrumbBuilderBase::__construct()

Constructs a forum breadcrumb builder object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\forum\ForumManagerInterface $forum_manager: The forum manager service.

File

core/modules/forum/src/Breadcrumb/ForumBreadcrumbBuilderBase.php, line 59
Contains \Drupal\forum\Breadcrumb\ForumBreadcrumbBuilderBase.

Class

ForumBreadcrumbBuilderBase
Provides a forum breadcrumb base class.

Namespace

Drupal\forum\Breadcrumb

Code

public function __construct(EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory, ForumManagerInterface $forum_manager) {
  $this->entityManager = $entity_manager;
  $this->config = $config_factory
    ->get('forum.settings');
  $this->forumManager = $forum_manager;
}