You are here

public function FlagViewsSortFlagged::query in Flag 8.4

Called to add the sort to a query.

Overrides SortPluginBase::query

File

src/Plugin/views/sort/FlagViewsSortFlagged.php, line 42

Class

FlagViewsSortFlagged
Sorts entities by flagged or unflagged in a view.

Namespace

Drupal\flag\Plugin\views\sort

Code

public function query() {
  $this
    ->ensureMyTable();
  $this->query
    ->addOrderBy(NULL, "{$this->tableAlias}.uid", $this->options['order']);
}