function TermReference::buildExposeForm in EntityFieldQuery Views Backend 8
Options form subform for exposed filter options.
Overrides InOperator::buildExposeForm
See also
buildOptionsForm()
File
- src/
Plugin/ views/ filter/ TermReference.php, line 336 - Contains \Drupal\efq_views\Plugin\views\filter\FieldInOperator.
Class
- TermReference
- Filter by term id.
Namespace
Drupal\efq_views\Plugin\views\filterCode
function buildExposeForm(&$form, FormStateInterface $form_state) {
parent::buildExposeForm($form, $form_state);
if ($this->options['type'] != 'select') {
unset($form['expose']['reduce']);
}
$form['error_message'] = array(
'#type' => 'checkbox',
'#title' => t('Display error message'),
'#default_value' => !empty($this->options['error_message']),
);
}