You are here

public function Menu::__construct in Menu Entity Index 8

Same name in this branch
  1. 8 src/Plugin/views/filter/Menu.php \Drupal\menu_entity_index\Plugin\views\filter\Menu::__construct()
  2. 8 src/Plugin/views/argument_default/Menu.php \Drupal\menu_entity_index\Plugin\views\argument_default\Menu::__construct()
  3. 8 src/Plugin/views/field/Menu.php \Drupal\menu_entity_index\Plugin\views\field\Menu::__construct()

Constructs a PluginBase object.

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\menu_entity_index\TrackerInterface $tracker: The Menu Entity Index Tracker service.

Overrides PluginBase::__construct

File

src/Plugin/views/argument_default/Menu.php, line 43

Class

Menu
The menu argument default handler.

Namespace

Drupal\menu_entity_index\Plugin\views\argument_default

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TrackerInterface $tracker) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->definition = $plugin_definition + $configuration;
  $this->tracker = $tracker;
}