You are here

public function Label::init in Profile 2 8

Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::init().

Overrides FieldPluginBase::init

File

src/Plugin/views/field/Label.php, line 25
Definition of Drupal\profile\Plugin\views\field\Label.

Class

Label
Field handler to show the generated label of a profile.

Namespace

Drupal\profile\Plugin\views\field

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  $this->additional_fields['pid'] = 'pid';
}