Issue #2681903 by Chi: Unused dependency in Book breadcrumb builder service
parent
3429084f46
commit
f04c292f55
|
|
@ -1,7 +1,7 @@
|
||||||
services:
|
services:
|
||||||
book.breadcrumb:
|
book.breadcrumb:
|
||||||
class: Drupal\book\BookBreadcrumbBuilder
|
class: Drupal\book\BookBreadcrumbBuilder
|
||||||
arguments: ['@entity.manager', '@access_manager', '@current_user']
|
arguments: ['@entity.manager', '@current_user']
|
||||||
tags:
|
tags:
|
||||||
- { name: breadcrumb_builder, priority: 701 }
|
- { name: breadcrumb_builder, priority: 701 }
|
||||||
book.manager:
|
book.manager:
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
namespace Drupal\book;
|
namespace Drupal\book;
|
||||||
|
|
||||||
use Drupal\Core\Access\AccessManagerInterface;
|
|
||||||
use Drupal\Core\Breadcrumb\Breadcrumb;
|
use Drupal\Core\Breadcrumb\Breadcrumb;
|
||||||
use Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface;
|
use Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface;
|
||||||
use Drupal\Core\Entity\EntityManagerInterface;
|
use Drupal\Core\Entity\EntityManagerInterface;
|
||||||
|
|
@ -30,13 +29,6 @@ class BookBreadcrumbBuilder implements BreadcrumbBuilderInterface {
|
||||||
*/
|
*/
|
||||||
protected $nodeStorage;
|
protected $nodeStorage;
|
||||||
|
|
||||||
/**
|
|
||||||
* The access manager.
|
|
||||||
*
|
|
||||||
* @var \Drupal\Core\Access\AccessManagerInterface
|
|
||||||
*/
|
|
||||||
protected $accessManager;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The current user account.
|
* The current user account.
|
||||||
*
|
*
|
||||||
|
|
@ -49,14 +41,11 @@ class BookBreadcrumbBuilder implements BreadcrumbBuilderInterface {
|
||||||
*
|
*
|
||||||
* @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
|
* @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
|
||||||
* The entity manager service.
|
* The entity manager service.
|
||||||
* @param \Drupal\Core\Access\AccessManagerInterface $access_manager
|
|
||||||
* The access manager.
|
|
||||||
* @param \Drupal\Core\Session\AccountInterface $account
|
* @param \Drupal\Core\Session\AccountInterface $account
|
||||||
* The current user 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->nodeStorage = $entity_manager->getStorage('node');
|
||||||
$this->accessManager = $access_manager;
|
|
||||||
$this->account = $account;
|
$this->account = $account;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue