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

1
2
3
4
public function __construct(EntityManagerInterface $entity_manager, AccountInterface $account) {
  $this->nodeStorage = $entity_manager->getStorage('node');
  $this->account = $account;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.