You are here

protected function PaymentListBuilder::getEntityIds in Payment 8.2

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

Return value

array An array of entity IDs.

Overrides EntityListBuilder::getEntityIds

File

src/Entity/Payment/PaymentListBuilder.php, line 92

Class

PaymentListBuilder
Lists payment entities.

Namespace

Drupal\payment\Entity\Payment

Code

protected function getEntityIds() {
  $query = $this
    ->getStorage()
    ->getQuery();
  $header = $this
    ->buildHeader();
  $query
    ->tableSort($header);
  if ($this->ownerId) {
    $query
      ->condition('owner', $this->ownerId);
  }
  return $query
    ->pager($this->limit)
    ->execute();
}