BookBreadcrumbBuilder::__construct

public BookBreadcrumbBuilder::__construct(EntityManagerInterface $entity_manager, AccountInterface $account)

Constructs the BookBreadcrumbBuilder.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity 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(EntityManagerInterface $entity_manager, AccountInterface $account) {
  $this->nodeStorage = $entity_manager->getStorage('node');
  $this->account = $account;
}
doc_Drupal
2016-10-29 08:48:01
Comments
Leave a Comment

Please login to continue.