function Fixed::buildOptionsForm
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/argument_default/Fixed.php \Drupal\views\Plugin\views\argument_default\Fixed::buildOptionsForm()
- 10 core/modules/views/src/Plugin/views/argument_default/Fixed.php \Drupal\views\Plugin\views\argument_default\Fixed::buildOptionsForm()
- 11.x core/modules/views/src/Plugin/views/argument_default/Fixed.php \Drupal\views\Plugin\views\argument_default\Fixed::buildOptionsForm()
Overrides ArgumentDefaultPluginBase::buildOptionsForm
File
-
core/
modules/ views/ src/ Plugin/ views/ argument_default/ Fixed.php, line 34
Class
- Fixed
- The fixed argument default handler.
Namespace
Drupal\views\Plugin\views\argument_defaultCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['argument'] = [
'#type' => 'textfield',
'#title' => $this->t('Fixed value'),
'#default_value' => $this->options['argument'],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.