function TermName::defineOptions
Overrides EntityField::defineOptions
File
- 
              core/
modules/ taxonomy/ src/ Plugin/ views/ field/ TermName.php, line 38  
Class
- TermName
 - Displays taxonomy term names and allows converting spaces to hyphens.
 
Namespace
Drupal\taxonomy\Plugin\views\fieldCode
protected function defineOptions() {
  $options = parent::defineOptions();
  $options['convert_spaces'] = [
    'default' => FALSE,
  ];
  return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.