public function ViewsJsonArgument::buildOptionsForm in Views Json Source 8
Same name and namespace in other branches
- 1.x src/Plugin/views/argument/ViewsJsonArgument.php \Drupal\views_json_source\Plugin\views\argument\ViewsJsonArgument::buildOptionsForm()
Provide a form to edit options for this plugin.
Overrides ArgumentPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ argument/ ViewsJsonArgument.php, line 47
Class
- ViewsJsonArgument
- Base argument handler for views_json_source.
Namespace
Drupal\views_json_source\Plugin\views\argumentCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['key'] = [
'#title' => $this
->t('Key Chooser'),
'#description' => $this
->t('choose a key'),
'#type' => 'textfield',
'#default_value' => $this->options['key'],
'#required' => TRUE,
];
}