Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ArgumentPluginBase.php

function 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 148

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal