You are here

public function SynonymsEntity::buildOptionsForm in Synonyms 8

Same name and namespace in other branches
  1. 2.0.x modules/synonyms_views_argument_validator/src/Plugin/views/argument_validator/SynonymsEntity.php \Drupal\synonyms_views_argument_validator\Plugin\views\argument_validator\SynonymsEntity::buildOptionsForm()

Provides the default form for setting options.

Overrides Entity::buildOptionsForm

File

synonyms_views_argument_validator/src/Plugin/views/argument_validator/SynonymsEntity.php, line 65

Class

SynonymsEntity
Synonyms-friendly entity validator.

Namespace

Drupal\synonyms_views_argument_validator\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 spaces.'),
    '#default_value' => $this->options['transform'],
  ];
}