public function ViewsJsonField::clickSort in Views Json Source 8
Same name and namespace in other branches
- 1.x src/Plugin/views/field/ViewsJsonField.php \Drupal\views_json_source\Plugin\views\field\ViewsJsonField::clickSort()
Called to determine what to tell the clicksorter.
Overrides FieldPluginBase::clickSort
File
- src/
Plugin/ views/ field/ ViewsJsonField.php, line 91
Class
- ViewsJsonField
- Base field handler for views_json_source.
Namespace
Drupal\views_json_source\Plugin\views\fieldCode
public function clickSort($order) {
if (isset($this->field_alias)) {
$this->query
->addOrderBy(NULL, $this->field_alias, $order);
}
}