You are here

protected function Raw::defineOptions in Views (for Drupal 7) 8.3

Retrieve the options when this is a new access control plugin

Overrides ArgumentDefaultPluginBase::defineOptions

File

lib/Drupal/views/Plugin/views/argument_default/Raw.php, line 25
Definition of Drupal\views\Plugin\views\argument_default\Raw.

Class

Raw
Default argument plugin to use the raw value from the URL.

Namespace

Drupal\views\Plugin\views\argument_default

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['index'] = array(
    'default' => '',
  );
  $options['use_alias'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  return $options;
}