You are here

public function DefaultMenuLinkTreeManipulators::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php \Drupal\Core\Menu\DefaultMenuLinkTreeManipulators::__construct()

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 57
Contains \Drupal\Core\Menu\DefaultMenuLinkTreeManipulators.

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;
}