function ArgumentPluginBase::summary_sort in Views (for Drupal 7) 8.3
Sorts the summary based upon the user's selection. The base variant of this is usually adequte.
Parameters
$order: The order selected in the UI.
1 call to ArgumentPluginBase::summary_sort()
- ArgumentPluginBase::default_summary in lib/
Drupal/ views/ Plugin/ views/ argument/ ArgumentPluginBase.php - Default action: summary.
File
- lib/
Drupal/ views/ Plugin/ views/ argument/ ArgumentPluginBase.php, line 871 - Definition of Drupal\views\Plugin\views\argument\ArgumentPluginBase.
Class
- ArgumentPluginBase
- Base class for arguments.
Namespace
Drupal\views\Plugin\views\argumentCode
function summary_sort($order, $by = NULL) {
$this->query
->add_orderby(NULL, NULL, $order, !empty($by) ? $by : $this->name_alias);
}