diff --git a/core/modules/book/book.services.yml b/core/modules/book/book.services.yml index 06affbb2777b..73c948436f04 100644 --- a/core/modules/book/book.services.yml +++ b/core/modules/book/book.services.yml @@ -1,7 +1,7 @@ services: book.breadcrumb: class: Drupal\book\BookBreadcrumbBuilder - arguments: ['@entity.manager', '@access_manager', '@current_user'] + arguments: ['@entity.manager', '@current_user'] tags: - { name: breadcrumb_builder, priority: 701 } book.manager: diff --git a/core/modules/book/src/BookBreadcrumbBuilder.php b/core/modules/book/src/BookBreadcrumbBuilder.php index 2fc237c00815..5ca1c0d104fb 100644 --- a/core/modules/book/src/BookBreadcrumbBuilder.php +++ b/core/modules/book/src/BookBreadcrumbBuilder.php @@ -7,7 +7,6 @@ namespace Drupal\book; -use Drupal\Core\Access\AccessManagerInterface; use Drupal\Core\Breadcrumb\Breadcrumb; use Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface; use Drupal\Core\Entity\EntityManagerInterface; @@ -30,13 +29,6 @@ class BookBreadcrumbBuilder implements BreadcrumbBuilderInterface { */ protected $nodeStorage; - /** - * The access manager. - * - * @var \Drupal\Core\Access\AccessManagerInterface - */ - protected $accessManager; - /** * The current user account. * @@ -49,14 +41,11 @@ class BookBreadcrumbBuilder implements BreadcrumbBuilderInterface { * * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager service. - * @param \Drupal\Core\Access\AccessManagerInterface $access_manager - * The access manager. * @param \Drupal\Core\Session\AccountInterface $account * The current user account. */ - public function __construct(EntityManagerInterface $entity_manager, AccessManagerInterface $access_manager, AccountInterface $account) { + public function __construct(EntityManagerInterface $entity_manager, AccountInterface $account) { $this->nodeStorage = $entity_manager->getStorage('node'); - $this->accessManager = $access_manager; $this->account = $account; }