function ArgumentPluginBase::default_action

Handle the default action, which means our argument wasn't present.

Override this method only with extreme care.

Return value

A boolean value; if TRUE, continue building this view. If FALSE, building the view will be aborted here.

1 call to ArgumentPluginBase::default_action()
ArgumentPluginBase::validateFail in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
How to act if validation failes

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php, line 654
Definition of Drupal\views\Plugin\views\argument\ArgumentPluginBase.

Class

ArgumentPluginBase
Base class for arguments.

Namespace

Drupal\views\Plugin\views\argument

Code

function default_action($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(array(
      &$this,
      $info['method'],
    ), $info['method args']);
  }
  else {
    return $this
      ->{$info['method']}();
  }
}