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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!DefaultMenuLinkTreeManipulators.php/function/DefaultMenuLinkTreeManipulators::__construct/8.1.x