You are here

public function ContextMenuActiveTrail::__construct in Context 8

Same name and namespace in other branches
  1. 8.4 src/ContextMenuActiveTrail.php \Drupal\context\ContextMenuActiveTrail::__construct()

Constructs a \Drupal\Core\Menu\MenuActiveTrail object.

Parameters

\Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager: The menu link plugin manager.

\Drupal\Core\Routing\RouteMatchInterface $route_match: A route match object for finding the active link.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.

\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.

Overrides MenuActiveTrail::__construct

File

src/ContextMenuActiveTrail.php, line 25

Class

ContextMenuActiveTrail
Extend the MenuActiveTrail class.

Namespace

Drupal\context

Code

public function __construct(MenuLinkManagerInterface $menu_link_manager, RouteMatchInterface $route_match, CacheBackendInterface $cache, LockBackendInterface $lock, ContextManager $context_manager) {
  parent::__construct($menu_link_manager, $route_match, $cache, $lock);
  $this->contextManager = $context_manager;
}