You are here

public function MenuTrailByPathActiveTrail::__construct in Menu Trail By Path 8

MenuTrailByPathActiveTrail constructor.

Parameters

\Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager:

\Drupal\Core\Routing\RouteMatchInterface $route_match:

\Drupal\Core\Cache\CacheBackendInterface $cache:

\Drupal\Core\Lock\LockBackendInterface $lock:

\Drupal\menu_trail_by_path\Path\PathHelperInterface $path_helper:

\Drupal\menu_trail_by_path\Menu\MenuHelperInterface $menu_helper:

\Drupal\Core\Routing\RequestContext $context:

\Drupal\Core\Language\LanguageManagerInterface $languageManager:

\Drupal\Core\Config\ConfigFactoryInterface $config_factory:

Overrides MenuActiveTrail::__construct

File

src/MenuTrailByPathActiveTrail.php, line 76

Class

MenuTrailByPathActiveTrail
Overrides the class for the file entity normalizer from HAL.

Namespace

Drupal\menu_trail_by_path

Code

public function __construct(MenuLinkManagerInterface $menu_link_manager, RouteMatchInterface $route_match, CacheBackendInterface $cache, LockBackendInterface $lock, PathHelperInterface $path_helper, MenuHelperInterface $menu_helper, RequestContext $context, LanguageManagerInterface $languageManager, ConfigFactoryInterface $config_factory) {
  parent::__construct($menu_link_manager, $route_match, $cache, $lock);
  $this->pathHelper = $path_helper;
  $this->menuHelper = $menu_helper;
  $this->context = $context;
  $this->languageManager = $languageManager;
  $this->config = $config_factory
    ->get('menu_trail_by_path.settings');
}