You are here

public function ArgumentPluginBase::summarySort in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::summarySort()

Sorts the summary based upon the user's selection. The base variant of this is usually adequate.

Parameters

$order: The order selected in the UI.

1 call to ArgumentPluginBase::summarySort()
ArgumentPluginBase::defaultSummary in core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
Default action: summary.

File

core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php, line 930

Class

ArgumentPluginBase
Base class for argument (contextual filter) handler plugins.

Namespace

Drupal\views\Plugin\views\argument

Code

public function summarySort($order, $by = NULL) {
  $this->query
    ->addOrderBy(NULL, NULL, $order, !empty($by) ? $by : $this->name_alias);
}