public function JobType::buildOptionsForm in Translation Management Tool 8
Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.
Overrides FilterPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ filter/ JobType.php, line 56
Class
- JobType
- Filter based on job type.
Namespace
Drupal\tmgmt\Plugin\views\filterCode
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'],
];
}