function RendererBase::query

Same name in other branches
  1. 9 core/modules/views/src/Entity/Render/RendererBase.php \Drupal\views\Entity\Render\RendererBase::query()
  2. 8.9.x core/modules/views/src/Entity/Render/RendererBase.php \Drupal\views\Entity\Render\RendererBase::query()
  3. 10 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
EntityTranslationRendererBase::query in core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php

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.