public function EntityFieldRenderer::query in Drupal 9
Same name and namespace in other branches
- 8 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 123
Class
- EntityFieldRenderer
- Renders entity fields.
Namespace
Drupal\views\Entity\RenderCode
public function query(QueryPluginBase $query, $relationship = NULL) {
$this
->getEntityTranslationRenderer()
->query($query, $relationship);
}