public function TaxonomyIndexTid::buildExposeForm in Views (for Drupal 7) 8.3
Options form subform for exposed filter options.
Overrides InOperator::buildExposeForm
See also
buildOptionsForm()
File
- lib/
Views/ taxonomy/ Plugin/ views/ filter/ TaxonomyIndexTid.php, line 347 - Definition of views_handler_filter_term_node_tid.
Class
- TaxonomyIndexTid
- Filter by term id.
Namespace
Views\taxonomy\Plugin\views\filterCode
public function buildExposeForm(&$form, &$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']),
);
}