You are here

protected function TempStore::defineOptions in Views Extras (Session/Cookie/Token Support) 2.x

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

Retrieve the options when this is a new access control plugin.

Overrides ArgumentDefaultPluginBase::defineOptions

File

src/Plugin/views/argument_default/TempStore.php, line 98

Class

TempStore
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['tempStore_unique_name'] = [
    'default' => '',
  ];
  $options['tempStore_key'] = [
    'default' => '',
  ];
  $options['fallback_value'] = [
    'default' => FALSE,
  ];
  $options['cache_time'] = [
    'default' => -1,
  ];
  return $options;
}