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()
Add this filter to the query.
Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.
Overrides GroupByNumeric::query
File
- uc_order/
src/ Plugin/ views/ filter/ Total.php, line 26
Class
- Total
- Filter handler that handles fields generated by table.fieldname * table.qty.
Namespace
Drupal\uc_order\Plugin\views\filterCode
public function query() {
$this
->ensure_my_table();
$field = $this->table . '_' . $this->field;
$info = $this
->operators();
if (!empty($info[$this->operator]['method'])) {
$this
->{$info[$this->operator]['method']}($field);
}
}