You are here

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

Same name and namespace in other branches
  1. 2.x src/Plugin/views/argument_default/Session.php \Drupal\views_extras\Plugin\views\argument_default\Session::defineOptions()

Retrieve the options when this is a new access control plugin

Overrides ArgumentDefaultPluginBase::defineOptions

File

src/Plugin/views/argument_default/Session.php, line 87

Class

Session
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['session_key'] = array(
    'default' => '',
  );
  $options['fallback_value'] = array(
    'default' => FALSE,
  );
  $options['cache_time'] = array(
    'default' => -1,
  );
  return $options;
}