You are here

public function TermName::buildOptionsForm in Zircon Profile 8

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

Default options form that provides the label widget that all fields should have.

Overrides Field::buildOptionsForm

File

core/modules/taxonomy/src/Plugin/views/field/TermName.php, line 51
Contains \Drupal\taxonomy\Plugin\views\field\TermName.

Class

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

Namespace

Drupal\taxonomy\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  $form['convert_spaces'] = array(
    '#title' => $this
      ->t('Convert spaces in term names to hyphens'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['convert_spaces']),
  );
  parent::buildOptionsForm($form, $form_state);
}