public function Revision::buildOptionsForm

Provide link to revision option.

Overrides Node::buildOptionsForm

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Revision.php, line 47
Definition of Drupal\node\Plugin\views\field\Revision.

Class

Revision
A basic node_revision handler.

Namespace

Drupal\node\Plugin\views\field

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['link_to_node_revision'] = array(
    '#title' => t('Link this field to its content revision'),
    '#description' => t('This will override any other link you have set.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_node_revision']),
  );
  parent::buildOptionsForm($form, $form_state);
}