Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RowPluginBase.php

function RowPluginBase::query

Overrides PluginBase::query

4 calls to RowPluginBase::query()
DataEntityRow::query in core/modules/rest/src/Plugin/views/row/DataEntityRow.php
Add anything to the query that we might need to.
DataEntityRow::query in core/modules/rest/src/Plugin/views/row/DataEntityRow.php
Add anything to the query that we might need to.
EntityRow::query in core/modules/views/src/Plugin/views/row/EntityRow.php
Add anything to the query that we might need to.
EntityRow::query in core/modules/views/src/Plugin/views/row/EntityRow.php
Add anything to the query that we might need to.
2 methods override RowPluginBase::query()
DataEntityRow::query in core/modules/rest/src/Plugin/views/row/DataEntityRow.php
Add anything to the query that we might need to.
EntityRow::query in core/modules/views/src/Plugin/views/row/EntityRow.php
Add anything to the query that we might need to.

File

core/modules/views/src/Plugin/views/row/RowPluginBase.php, line 149

Class

RowPluginBase
Base class for Views row plugins.

Namespace

Drupal\views\Plugin\views\row

Code

public function query() {
    if (isset($this->base_table)) {
        if (isset($this->options['relationship']) && isset($this->view->relationship[$this->options['relationship']])) {
            $relationship = $this->view->relationship[$this->options['relationship']];
            $this->field_alias = $this->view->query
                ->addField($relationship->alias, $this->base_field);
        }
        else {
            $this->field_alias = $this->view->query
                ->addField($this->base_table, $this->base_field);
        }
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal