public function Json::buildOptionsForm in Advanced Queue 8
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ field/ Json.php, line 31
Class
- Json
- Field handler to show data of json stored fields.
Namespace
Drupal\advancedqueue\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['key'] = [
'#type' => 'textfield',
'#title' => $this
->t('Which key should be displayed'),
'#default_value' => $this->options['key'],
'#states' => [
'visible' => [
':input[name="options[format]"]' => [
'value' => 'key',
],
],
],
];
}