function Raw::get_argument in Views (for Drupal 7) 8.3
Return the default argument.
This needs to be overridden by every default argument handler to properly do what is needed.
Overrides ArgumentDefaultPluginBase::get_argument
File
- lib/
Drupal/ views/ Plugin/ views/ argument_default/ Raw.php, line 52 - 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_defaultCode
function get_argument() {
$path = NULL;
if ($this->options['use_alias']) {
$path = drupal_get_path_alias();
}
if ($arg = arg($this->options['index'], $path)) {
return $arg;
}
}