public function JobType::buildOptionsForm

File

src/Plugin/views/filter/JobType.php, line 56

Class

JobType
Filter based on job type.

Namespace

Drupal\tmgmt\Plugin\views\filter

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['expose']['hide_no_continuous'] = [
    '#type' => 'checkbox',
    '#title' => t('Hide this filter if there are no continuous jobs.'),
    '#default_value' => $this->options['expose']['hide_no_continuous'],
  ];
}