You are here

public function ViewsJsonField::clickSort in Views Json Source 1.x

Same name and namespace in other branches
  1. 8 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 80

Class

ViewsJsonField
Base field handler for views_json_source.

Namespace

Drupal\views_json_source\Plugin\views\field

Code

public function clickSort($order) {
  if (isset($this->field_alias)) {
    $this->query
      ->addOrderBy(NULL, $this->field_alias, $order);
  }
}