DefaultMenuLinkTreeManipulators::__construct

public DefaultMenuLinkTreeManipulators::__construct(AccessManagerInterface $access_manager, AccountInterface $account, QueryFactory $query_factory)

Constructs a \Drupal\Core\Menu\DefaultMenuLinkTreeManipulators object.

Parameters

\Drupal\Core\Access\AccessManagerInterface $access_manager: The access manager.

\Drupal\Core\Session\AccountInterface $account: The current user.

\Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query factory.

File

core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php, line 52

Class

DefaultMenuLinkTreeManipulators
Provides a couple of menu link tree manipulators.

Namespace

Drupal\Core\Menu

Code

public function __construct(AccessManagerInterface $access_manager, AccountInterface $account, QueryFactory $query_factory) {
  $this->accessManager = $access_manager;
  $this->account = $account;
  $this->queryFactory = $query_factory;
}
doc_Drupal
2016-10-29 09:01:49
Comments
Leave a Comment

Please login to continue.