You are here

public function Menu::setMenuTree in Workbench Access 8

Sets menu tree service.

Parameters

\Drupal\Core\Menu\MenuLinkTreeInterface $menuTree: Menu tree service.

Return value

$this

File

src/Plugin/AccessControlHierarchy/Menu.php, line 55

Class

Menu
Defines a hierarchy based on a Menu.

Namespace

Drupal\workbench_access\Plugin\AccessControlHierarchy

Code

public function setMenuTree(MenuLinkTreeInterface $menuTree) {
  $this->menuTree = $menuTree;
  return $this;
}