You are here

function ArgumentPluginBase::default_action in Views (for Drupal 7) 8.3

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 lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
How to act if validation failes

File

lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php, line 650
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
      ->default_actions($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']}();
  }
}