function LinkBase::query

Same name and namespace in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::query()
  2. 10 core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::query()
  3. 11.x core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::query()

Overrides FieldPluginBase::query

File

core/modules/views/src/Plugin/views/field/LinkBase.php, line 155

Class

LinkBase
Field handler to present a link to an entity.

Namespace

Drupal\views\Plugin\views\field

Code

public function query() {
    if ($this->languageManager
        ->isMultilingual()) {
        $this->getEntityTranslationRenderer()
            ->query($this->query, $this->relationship);
    }
    $this->addAdditionalFields();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.