function TermName::buildOptionsForm
Overrides Entity::buildOptionsForm
File
-
core/
modules/ taxonomy/ src/ Plugin/ views/ argument_validator/ TermName.php, line 52
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'],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.