public function Total::query in Ubercart 8.4
Same name in this branch
- 8.4 uc_order/src/Plugin/views/filter/Total.php \Drupal\uc_order\Plugin\views\filter\Total::query()
- 8.4 uc_order/src/Plugin/views/sort/Total.php \Drupal\uc_order\Plugin\views\sort\Total::query()
Called to add the sort to a query.
Overrides SortPluginBase::query
File
- uc_order/
src/ Plugin/ views/ sort/ Total.php, line 22
Class
- Total
- Simple sort on table.fieldname * table.qty.
Namespace
Drupal\uc_order\Plugin\views\sortCode
public function query() {
$this
->ensure_my_table();
// Add the field.
$this->query
->add_orderby(NULL, NULL, $this->options['order'], $this->table . '_' . $this->field);
}