1 views_plugin_argument_default_raw.inc views_plugin_argument_default_raw::get_argument()

Return the default argument.

This needs to be overridden by every default argument handler to properly do what is needed.

Overrides views_plugin_argument_default::get_argument

File

core/modules/views/plugins/views_plugin_argument_default_raw.inc, line 41
Contains the raw value argument default plugin.

Class

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

Code

function get_argument() {
  $path = NULL;
  if ($this->options['use_alias']) {
    $path = backdrop_get_path_alias();
  }
  if ($arg = arg($this->options['index'], $path)) {
    return $arg;
  }
}