You are here

public function MenuLinkContentId::__construct in Menu Item Extras 8.2

Constructs a new Tid instance.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree: Menu tree.

\Symfony\Component\HttpFoundation\Request $request: Current request.

Overrides PluginBase::__construct

File

src/Plugin/views/argument_default/MenuLinkContentId.php, line 71

Class

MenuLinkContentId
Active menu item id default argument.

Namespace

Drupal\menu_item_extras\Plugin\views\argument_default

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $route_match, EntityTypeManagerInterface $entity_type_manager, MenuLinkTreeInterface $menu_tree, Request $request) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->routeMatch = $route_match;
  $this->entityTypeManager = $entity_type_manager;
  $this->menuTree = $menu_tree;
  $this->currentRequest = $request;
}