protected function PriceListListBuilder::getEntityIds in Commerce Pricelist 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/
PriceListListBuilder.php, line 78
Class
- PriceListListBuilder
- Defines the list builder for price lists.
Namespace
Drupal\commerce_pricelistCode
protected function getEntityIds() {
$query = $this
->getStorage()
->getQuery()
->sort('weight', 'ASC')
->sort('id', 'ASC');
// Only add the pager if a limit is specified.
if ($this->limit) {
$query
->pager($this->limit);
}
return $query
->execute();
}