You are here

public function ContentLockSort::query in Content locking (anti-concurrent editing) 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/sort/ContentLockSort.php \Drupal\content_lock\Plugin\views\sort\ContentLockSort::query()

Query.

Overrides SortPluginBase::query

File

src/Plugin/views/sort/ContentLockSort.php, line 17

Class

ContentLockSort
Content lock sort.

Namespace

Drupal\content_lock\Plugin\views\sort

Code

public function query() {
  $this
    ->ensureMyTable();
  $this->query
    ->addOrderBy($this->table_alias, 'timestamp', $this->options['order']);
}