public function Path::buildOptionsForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Plugin/views/field/Path.php \Drupal\node\Plugin\views\field\Path::buildOptionsForm()
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- core/
modules/ node/ src/ Plugin/ views/ field/ Path.php, line 47 - Contains \Drupal\node\Plugin\views\field\Path.
Class
- Path
- Field handler to present the path to the node.
Namespace
Drupal\node\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['absolute'] = array(
'#type' => 'checkbox',
'#title' => $this
->t('Use absolute link (begins with "http://")'),
'#default_value' => $this->options['absolute'],
'#description' => $this
->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',
);
}