You are here

protected function PromotionListBuilder::getEntityIds in Commerce Core 8.2

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

Return value

array An array of entity IDs.

Overrides EntityListBuilder::getEntityIds

1 call to PromotionListBuilder::getEntityIds()
PromotionListBuilder::load in modules/promotion/src/PromotionListBuilder.php
Loads entities of this type from storage for listing.

File

modules/promotion/src/PromotionListBuilder.php, line 131

Class

PromotionListBuilder
Defines the list builder for promotions.

Namespace

Drupal\commerce_promotion

Code

protected function getEntityIds() {
  $query = $this
    ->getStorage()
    ->getQuery()
    ->accessCheck(FALSE)
    ->condition('status', $this->statusCondition)
    ->sort($this->entityType
    ->getKey('id'));

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