You are here

public function EntityLabel::init in Commerce License 8.2

Initialize the plugin.

Parameters

\Drupal\views\ViewExecutable $view: The view object.

\Drupal\views\Plugin\views\display\DisplayPluginBase $display: The display handler.

array $options: The options configured for this plugin.

Overrides EntityLabel::init

File

src/Plugin/views/field/EntityLabel.php, line 25

Class

EntityLabel
Field handler to display entity label optionally linked to entity page.

Namespace

Drupal\commerce_license\Plugin\views\field

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  FieldPluginBase::init($view, $display, $options);
  if (isset($this->definition['entity type field'])) {
    $this->additional_fields[$this->definition['entity type field']] = $this->definition['entity type field'];
  }
}