You are here

public function MenuPerRoleLinkTreeManipulator::setAdminContext in Menu Per Role 8

Sets the admin context.

Parameters

\Drupal\Core\Routing\AdminContext $adminContext: The router admin context service.

File

src/MenuPerRoleLinkTreeManipulator.php, line 46

Class

MenuPerRoleLinkTreeManipulator
Menu Per Role link tree manipulator service.

Namespace

Drupal\menu_per_role

Code

public function setAdminContext(AdminContext $adminContext) : void {
  $this->adminContext = $adminContext;
}