You are here

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

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

Overrides FieldPluginBase::init

File

lib/Views/node/Plugin/views/field/RevisionLink.php, line 29
Definition of Views\node\Plugin\views\field\RevisionLink.

Class

RevisionLink
Field handler to present a link to a node revision.

Namespace

Views\node\Plugin\views\field

Code

public function init(ViewExecutable $view, &$options) {
  parent::init($view, $options);
  $this->additional_fields['node_vid'] = array(
    'table' => 'node_revision',
    'field' => 'vid',
  );
}