You are here

public function Fixed::buildOptionsForm in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/argument_default/Fixed.php \Drupal\views\Plugin\views\argument_default\Fixed::buildOptionsForm()

Provide the default form for setting options.

Overrides ArgumentDefaultPluginBase::buildOptionsForm

File

core/modules/views/src/Plugin/views/argument_default/Fixed.php, line 39
Contains \Drupal\views\Plugin\views\argument_default\Fixed.

Class

Fixed
The fixed argument default handler.

Namespace

Drupal\views\Plugin\views\argument_default

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['argument'] = array(
    '#type' => 'textfield',
    '#title' => $this
      ->t('Fixed value'),
    '#default_value' => $this->options['argument'],
  );
}