You are here

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

1 call to ArgumentPluginBase::is_exception()
ArgumentPluginBase::validateArgument in lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
Validate that this argument works. By default, all arguments are valid.

File

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

Class

ArgumentPluginBase
Base class for arguments.

Namespace

Drupal\views\Plugin\views\argument

Code

function is_exception($arg = NULL) {
  if (!isset($arg)) {
    $arg = isset($this->argument) ? $this->argument : NULL;
  }
  return !empty($this->options['exception']['value']) && $this->options['exception']['value'] === $arg;
}