protected function ViewsJsonField::defineOptions in Views Json Source 8
Same name and namespace in other branches
- 1.x src/Plugin/views/field/ViewsJsonField.php \Drupal\views_json_source\Plugin\views\field\ViewsJsonField::defineOptions()
Option definition.
Overrides FieldPluginBase::defineOptions
File
- src/
Plugin/ views/ field/ ViewsJsonField.php, line 46
Class
- ViewsJsonField
- Base field handler for views_json_source.
Namespace
Drupal\views_json_source\Plugin\views\fieldCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['key'] = [
'default' => '',
];
$options['trusted_html'] = [
'default' => 0,
];
return $options;
}