You are here

public function HeartbeatEntityQuery::tableSort in Heartbeat 8

Enables sortable tables for this query.

Parameters

$headers: An array of headers of the same structure as described in template_preprocess_table(). Use a 'specifier' in place of a 'field' to specify what to sort on. This can be an entity or a field as described in condition().

Return value

\Drupal\Core\Entity\Query\QueryInterface The called object.

Overrides QueryInterface::tableSort

File

src/HeartbeatEntityQuery.php, line 301

Class

HeartbeatEntityQuery
Created by IntelliJ IDEA. User: logicp Date: 5/28/17 Time: 1:37 PM

Code

public function tableSort(&$headers) {

  // TODO: Implement tableSort() method.
}