public function ViewsJsonSort::defineOptions in Views Json Source 8
Same name and namespace in other branches
- 1.x src/Plugin/views/sort/ViewsJsonSort.php \Drupal\views_json_source\Plugin\views\sort\ViewsJsonSort::defineOptions()
Option definition.
Overrides SortPluginBase::defineOptions
File
- src/
Plugin/ views/ sort/ ViewsJsonSort.php, line 18
Class
- ViewsJsonSort
- Base sort handler for views_json_source.
Namespace
Drupal\views_json_source\Plugin\views\sortCode
public function defineOptions() {
$options = parent::defineOptions();
$options['key'] = [
'default' => '',
];
return $options;
}