You are here

public function DefaultMenuLinkTreeManipulators::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

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

Class

DefaultMenuLinkTreeManipulators
Provides a couple of menu link tree manipulators.

Namespace

Drupal\Core\Menu

Code

public function __construct(AccessManagerInterface $access_manager, AccountInterface $account, EntityTypeManagerInterface $entity_type_manager) {
  $this->accessManager = $access_manager;
  $this->account = $account;
  $this->entityTypeManager = $entity_type_manager;
}