You are here

protected function TermName::defineOptions in Drupal 10

Same name in this branch
  1. 10 core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php \Drupal\taxonomy\Plugin\views\argument_validator\TermName::defineOptions()
  2. 10 core/modules/taxonomy/src/Plugin/views/field/TermName.php \Drupal\taxonomy\Plugin\views\field\TermName::defineOptions()
Same name and namespace in other branches
  1. 8 core/modules/taxonomy/src/Plugin/views/field/TermName.php \Drupal\taxonomy\Plugin\views\field\TermName::defineOptions()
  2. 9 core/modules/taxonomy/src/Plugin/views/field/TermName.php \Drupal\taxonomy\Plugin\views\field\TermName::defineOptions()

File

core/modules/taxonomy/src/Plugin/views/field/TermName.php, line 37

Class

TermName
Displays taxonomy term names and allows converting spaces to hyphens.

Namespace

Drupal\taxonomy\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['convert_spaces'] = [
    'default' => FALSE,
  ];
  return $options;
}