You are here

public function BookBreadcrumbBuilder::__construct in Zircon Profile 8

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

Constructs the BookBreadcrumbBuilder.

Parameters

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

\Drupal\Core\Access\AccessManagerInterface $access_manager: The access manager.

\Drupal\Core\Session\AccountInterface $account: The current user account.

File

core/modules/book/src/BookBreadcrumbBuilder.php, line 57
Contains \Drupal\book\BookBreadcrumbBuilder.

Class

BookBreadcrumbBuilder
Provides a breadcrumb builder for nodes in a book.

Namespace

Drupal\book

Code

public function __construct(EntityManagerInterface $entity_manager, AccessManagerInterface $access_manager, AccountInterface $account) {
  $this->nodeStorage = $entity_manager
    ->getStorage('node');
  $this->accessManager = $access_manager;
  $this->account = $account;
}