public function TermName::buildOptionsForm in Drupal 9
Same name in this branch
- 9 core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php \Drupal\taxonomy\Plugin\views\argument_validator\TermName::buildOptionsForm()
- 9 core/modules/taxonomy/src/Plugin/views/field/TermName.php \Drupal\taxonomy\Plugin\views\field\TermName::buildOptionsForm()
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php \Drupal\taxonomy\Plugin\views\argument_validator\TermName::buildOptionsForm()
Provides the default form for setting options.
Overrides Entity::buildOptionsForm
File
- core/
modules/ taxonomy/ src/ Plugin/ views/ argument_validator/ TermName.php, line 51
Class
- TermName
- Validates whether a term name is a valid term argument.
Namespace
Drupal\taxonomy\Plugin\views\argument_validatorCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['transform'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Transform dashes in URL to spaces in term name filter values'),
'#default_value' => $this->options['transform'],
];
}