You are here

public function NodeTranslationLink::init in Views (for Drupal 7) 8.3

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

Overrides FieldPluginBase::init

File

lib/Views/translation/Plugin/views/field/NodeTranslationLink.php, line 29
Definition of Views\translation\Plugin\views\field\NodeTranslationLink.

Class

NodeTranslationLink
Field handler to present a link to the node.

Namespace

Views\translation\Plugin\views\field

Code

public function init(ViewExecutable $view, &$options) {
  parent::init($view, $options);
  $this->additional_fields['nid'] = 'nid';
  $this->additional_fields['tnid'] = 'tnid';
  $this->additional_fields['title'] = 'title';
  $this->additional_fields['langcode'] = 'langcode';
}