You are here

public function EntityFieldRenderer::query in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Entity/Render/EntityFieldRenderer.php \Drupal\views\Entity\Render\EntityFieldRenderer::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.

Overrides RendererBase::query

File

core/modules/views/src/Entity/Render/EntityFieldRenderer.php, line 143

Class

EntityFieldRenderer
Renders entity fields.

Namespace

Drupal\views\Entity\Render

Code

public function query(QueryPluginBase $query, $relationship = NULL) {
  $this
    ->getEntityTranslationRenderer()
    ->query($query, $relationship);
}