You are here

public function TargetType::__construct in Menu Entity Index 8

Same name in this branch
  1. 8 src/Plugin/views/filter/TargetType.php \Drupal\menu_entity_index\Plugin\views\filter\TargetType::__construct()
  2. 8 src/Plugin/views/field/TargetType.php \Drupal\menu_entity_index\Plugin\views\field\TargetType::__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 HandlerBase::__construct

File

src/Plugin/views/field/TargetType.php, line 38

Class

TargetType
Field plugin for target type field.

Namespace

Drupal\menu_entity_index\Plugin\views\field

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;
}