You are here

public function Path::buildOptionsForm in Views (for Drupal 7) 8.3

Default options form that provides the label widget that all fields should have.

Overrides FieldPluginBase::buildOptionsForm

File

lib/Views/node/Plugin/views/field/Path.php, line 42
Definition of Views\node\Plugin\views\field\Path.

Class

Path
Field handler to present the path to the node.

Namespace

Views\node\Plugin\views\field

Code

public function buildOptionsForm(&$form, &$form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['absolute'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use absolute link (begins with "http://")'),
    '#default_value' => $this->options['absolute'],
    '#description' => t('Enable this option to output an absolute link. Required if you want to use the path as a link destination (as in "output this field as a link" above).'),
    '#fieldset' => 'alter',
  );
}