function ArgumentPluginBase::defaultAction
Same name in other branches
- 9 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::defaultAction()
- 8.9.x core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::defaultAction()
- 10 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::defaultAction()
Handle the default action, which means our argument wasn't present.
Override this method only with extreme care.
Return value
bool A boolean value; if TRUE, continue building this view. If FALSE, building the view will be aborted here.
1 call to ArgumentPluginBase::defaultAction()
- ArgumentPluginBase::validateFail in core/
modules/ views/ src/ Plugin/ views/ argument/ ArgumentPluginBase.php - How to act if validation fails.
File
-
core/
modules/ views/ src/ Plugin/ views/ argument/ ArgumentPluginBase.php, line 762
Class
- ArgumentPluginBase
- Base class for argument (contextual filter) handler plugins.
Namespace
Drupal\views\Plugin\views\argumentCode
public function defaultAction($info = NULL) {
if (!isset($info)) {
$info = $this->defaultActions($this->options['default_action']);
}
if (!$info) {
return FALSE;
}
if (!empty($info['method args'])) {
return call_user_func_array([
&$this,
$info['method'],
], $info['method args']);
}
else {
return $this->{$info['method']}();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.