function RendererBase::query

Same name in other branches
  1. 8.9.x core/modules/views/src/Entity/Render/RendererBase.php \Drupal\views\Entity\Render\RendererBase::query()
  2. 10 core/modules/views/src/Entity/Render/RendererBase.php \Drupal\views\Entity\Render\RendererBase::query()
  3. 11.x core/modules/views/src/Entity/Render/RendererBase.php \Drupal\views\Entity\Render\RendererBase::query()

Alters the query if needed.

Parameters

\Drupal\views\Plugin\views\query\QueryPluginBase $query: The query to alter.

string $relationship: (optional) The relationship, used by a field.

2 methods override RendererBase::query()
EntityFieldRenderer::query in core/modules/views/src/Entity/Render/EntityFieldRenderer.php
Alters the query if needed.
EntityTranslationRendererBase::query in core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php
Alters the query if needed.

File

core/modules/views/src/Entity/Render/RendererBase.php, line 91

Class

RendererBase
Defines a base class for entity renderers.

Namespace

Drupal\views\Entity\Render

Code

public abstract function query(QueryPluginBase $query, $relationship = NULL);

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