You are here

public function SupportTicket::buildOptionsForm in Support Ticketing System 8

Provide link to support ticket option

Overrides FieldPluginBase::buildOptionsForm

File

modules/support_ticket/src/Plugin/views/field/SupportTicket.php, line 52
Contains \Drupal\support_ticket\Plugin\views\field\SupportTicket.

Class

SupportTicket
Field handler to provide simple renderer that allows linking to a support ticket. Definition terms:

Namespace

Drupal\support_ticket\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  $form['link_to_support_ticket'] = array(
    '#title' => $this
      ->t('Link this field to the original ticket'),
    '#description' => $this
      ->t("Enable to override this field's links."),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_support_ticket']),
  );
  parent::buildOptionsForm($form, $form_state);
}