You are here

public function TermMachineName::buildOptionsForm in Taxonomy Machine Name 8

Provides the default form for setting options.

Overrides Entity::buildOptionsForm

File

src/Plugin/views/argument_validator/TermMachineName.php, line 51

Class

TermMachineName
Validates whether a term machine name is a valid term argument.

Namespace

Drupal\taxonomy_machine_name\Plugin\views\argument_validator

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['transform'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Transform dashes in URL to underscores in term name filter values'),
    '#default_value' => $this->options['transform'],
  ];
}