You are here

public function ArgumentPluginBase::query in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\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 969

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