function BookBreadcrumbBuilder::__construct
Same name in other branches
- 9 core/modules/book/src/BookBreadcrumbBuilder.php \Drupal\book\BookBreadcrumbBuilder::__construct()
- 10 core/modules/book/src/BookBreadcrumbBuilder.php \Drupal\book\BookBreadcrumbBuilder::__construct()
- 11.x 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\bookCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountInterface $account) {
$this->nodeStorage = $entity_type_manager->getStorage('node');
$this->account = $account;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.