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; }
Please login to continue.