public function OpignoModuleResultActions::query in Opigno module 8
Same name and namespace in other branches
- 3.x src/Plugin/views/field/OpignoModuleResultActions.php \Drupal\opigno_module\Plugin\views\field\OpignoModuleResultActions::query()
Called to add the field to a query.
Overrides FieldPluginBase::query
File
- src/
Plugin/ views/ field/ OpignoModuleResultActions.php, line 165
Class
- OpignoModuleResultActions
- A handler to provide a field that is completely custom by the administrator.
Namespace
Drupal\opigno_module\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);
}
}