Called to add the sort to a query.
Overrides PluginBase::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();
$this->query
->add_orderby($this->tableAlias, $this->realField, $this->options['order']);
}