You are here

public function Path::buildOptionsForm in Support Ticketing System 8

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

Overrides FieldPluginBase::buildOptionsForm

File

modules/support_ticket/src/Plugin/views/field/Path.php, line 47
Contains \Drupal\support_ticket\Plugin\views\field\Path.

Class

Path
Field handler to present the path to the support ticket.

Namespace

Drupal\support_ticket\Plugin\views\field

Code

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',
  );
}