You are here

public function BookBreadcrumbBuilder::__construct in Drupal 8

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

Constructs the BookBreadcrumbBuilder.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

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

File

core/modules/book/src/BookBreadcrumbBuilder.php, line 42

Class

BookBreadcrumbBuilder
Provides a breadcrumb builder for nodes in a book.

Namespace

Drupal\book

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountInterface $account) {
  $this->nodeStorage = $entity_type_manager
    ->getStorage('node');
  $this->account = $account;
}