function ContextualLinks::__construct

Same name and namespace in other branches
  1. 11.x core/modules/contextual/src/Plugin/views/field/ContextualLinks.php \Drupal\contextual\Plugin\views\field\ContextualLinks::__construct()

Constructs a Handler 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.

Overrides HandlerBase::__construct

File

core/modules/contextual/src/Plugin/views/field/ContextualLinks.php, line 31

Class

ContextualLinks
Provides a handler that adds contextual links.

Namespace

Drupal\contextual\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ContextualLinksSerializer $contextual_links_serializer) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->contextualLinksSerializer = $contextual_links_serializer;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.