function ArgumentPluginBase::query

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::query()
  2. 8.9.x core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::query()
  3. 11.x 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
IndexTidDepth::query in core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php
IndexTidDepthModifier::query in core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepthModifier.php
ManyToOne::query in core/modules/views/src/Plugin/views/argument/ManyToOne.php

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

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