public function SortPluginBase::query

Called to add the sort to a query.

Overrides PluginBase::query

8 methods override SortPluginBase::query()

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/sort/SortPluginBase.php, line 34
Definition of Drupal\views\Plugin\views\sort\SortPluginBase.

Class

SortPluginBase
Base sort handler that has no options and performs a simple sort.

Namespace

Drupal\views\Plugin\views\sort

Code

public function query() {
  $this
    ->ensureMyTable();

  // Add the field.
  $this->query
    ->add_orderby($this->tableAlias, $this->realField, $this->options['order']);
}