You are here

protected function TransactionOperationListBuilder::getEntityIds in Transaction 8

Loads entity IDs using a pager sorted by the entity id.

Return value

array An array of entity IDs.

Overrides EntityListBuilder::getEntityIds

File

src/TransactionOperationListBuilder.php, line 63

Class

TransactionOperationListBuilder
Provides a entity list page for transaction operations.

Namespace

Drupal\transaction

Code

protected function getEntityIds() {
  $query = $this
    ->getStorage()
    ->getQuery()
    ->condition('transaction_type', $this->transactionTypeId)
    ->sort('id');

  // Only add the pager if a limit is specified.
  if ($this->limit) {
    $query
      ->pager($this->limit);
  }
  return $query
    ->execute();
}