function ArgumentPluginBase::isException

Same name and namespace in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::isException()
  2. 10 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::isException()
  3. 11.x core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::isException()
1 call to ArgumentPluginBase::isException()
ArgumentPluginBase::validateArgument in core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
Validate that this argument works. By default, all arguments are valid.

File

core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php, line 92

Class

ArgumentPluginBase
Base class for argument (contextual filter) handler plugins.

Namespace

Drupal\views\Plugin\views\argument

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.