protected function Cookie::defineOptions in Views Extras (Session/Cookie/Token Support) 2.x
Same name and namespace in other branches
- 8 src/Plugin/views/argument_default/Cookie.php \Drupal\views_extras\Plugin\views\argument_default\Cookie::defineOptions()
Retrieve the options when this is a new access control plugin.
Overrides ArgumentDefaultPluginBase::defineOptions
File
- src/
Plugin/ views/ argument_default/ Cookie.php, line 88
Class
- Cookie
- Default argument plugin to use the raw value from the URL.
Namespace
Drupal\views_extras\Plugin\views\argument_defaultCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['cookie_key'] = [
'default' => '',
];
$options['fallback_value'] = [
'default' => FALSE,
];
return $options;
}