function ArgumentPluginBase::query

Same name and namespace in other branches
  1. 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.

1 method overrides ArgumentPluginBase::query()
NullArgument::query in core/modules/views/src/Plugin/views/argument/NullArgument.php
Set up the query for this argument.

File

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

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.