public function TaxonomyIndexTid::buildExposeForm in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php \Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid::buildExposeForm()
Options form subform for exposed filter options.
Overrides InOperator::buildExposeForm
See also
buildOptionsForm()
File
- core/
modules/ taxonomy/ src/ Plugin/ views/ filter/ TaxonomyIndexTid.php, line 339 - Contains \Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid.
Class
- TaxonomyIndexTid
- Filter by term id.
Namespace
Drupal\taxonomy\Plugin\views\filterCode
public 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' => $this
->t('Display error message'),
'#default_value' => !empty($this->options['error_message']),
);
}