Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TermName.php

function TermName::defineOptions

Same name in this branch
  1. 11.1.x core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php \Drupal\taxonomy\Plugin\views\argument_validator\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\field

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal