function EntityOperations::query
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/field/EntityOperations.php \Drupal\views\Plugin\views\field\EntityOperations::query()
- 10 core/modules/views/src/Plugin/views/field/EntityOperations.php \Drupal\views\Plugin\views\field\EntityOperations::query()
- 11.x core/modules/views/src/Plugin/views/field/EntityOperations.php \Drupal\views\Plugin\views\field\EntityOperations::query()
Overrides FieldPluginBase::query
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ EntityOperations.php, line 157
Class
- EntityOperations
- Renders all operations links for an entity.
Namespace
Drupal\views\Plugin\views\fieldCode
public function query() {
// We purposefully do not call parent::query() because we do not want the
// default query behavior for Views fields. Instead, let the entity
// translation renderer provide the correct query behavior.
if ($this->languageManager
->isMultilingual()) {
$this->getEntityTranslationRenderer()
->query($this->query, $this->relationship);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.