You are here

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

Default action: empty

If an argument was expected and was not given, in this case, display the view's empty text

File

lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php, line 713
Definition of Drupal\views\Plugin\views\argument\ArgumentPluginBase.

Class

ArgumentPluginBase
Base class for arguments.

Namespace

Drupal\views\Plugin\views\argument

Code

function default_empty() {

  // We return with no query; this will force the empty text.
  $this->view->built = TRUE;
  $this->view->executed = TRUE;
  $this->view->result = array();
  return FALSE;
}