You are here

protected function Cookie::defineOptions in Views Extras (Session/Cookie/Token Support) 8

Same name and namespace in other branches
  1. 2.x 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_default

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['cookie_key'] = array(
    'default' => '',
  );
  $options['fallback_value'] = array(
    'default' => FALSE,
  );
  return $options;
}