public function Revision::buildOptionsForm in Views (for Drupal 7) 8.3
Provide link to revision option.
Overrides Node::buildOptionsForm
File
- lib/
Views/ node/ Plugin/ views/ field/ Revision.php, line 45 - Definition of Views\node\Plugin\views\field\Revision.
Class
- Revision
- A basic node_revision handler.
Namespace
Views\node\Plugin\views\fieldCode
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);
}