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

Breadcrumb

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

function ArgumentPluginBase::query

Set up the query for this argument.

The argument sent may be found at $this->argument.

Overrides HandlerBase::query

10 methods override ArgumentPluginBase::query()
Formula::query in core/modules/views/src/Plugin/views/argument/Formula.php
Build the query based upon the formula.
GroupByNumeric::query in core/modules/views/src/Plugin/views/argument/GroupByNumeric.php
Set up the query for this argument.
IndexTidDepth::query in core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php
Set up the query for this argument.
IndexTidDepthModifier::query in core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepthModifier.php
Set up the query for this argument.
ManyToOne::query in core/modules/views/src/Plugin/views/argument/ManyToOne.php
Set up the query for this argument.

... See full list

File

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

Class

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

Namespace

Drupal\views\Plugin\views\argument

Code

public function query($group_by = FALSE) {
    $this->ensureMyTable();
    $this->query
        ->addWhere(0, "{$this->tableAlias}.{$this->realField}", $this->argument);
}

API Navigation

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