You are here

protected function ConfigPagesListBuilder::getEntityIds in Config Pages 8.3

Same name and namespace in other branches
  1. 8 src/ConfigPagesListBuilder.php \Drupal\config_pages\ConfigPagesListBuilder::getEntityIds()
  2. 8.2 src/ConfigPagesListBuilder.php \Drupal\config_pages\ConfigPagesListBuilder::getEntityIds()

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 ConfigPagesListBuilder::getEntityIds()
ConfigPagesListBuilder::load in src/ConfigPagesListBuilder.php
Loads entities of this type from storage for listing.

File

src/ConfigPagesListBuilder.php, line 165

Class

ConfigPagesListBuilder
Defines a class to build a listing of custom config_pages entities.

Namespace

Drupal\config_pages

Code

protected function getEntityIds() {
  $query = $this->cpt_storage
    ->getQuery();
  $keys = $this->entityType
    ->getKeys();
  return $query
    ->sort($keys['id'])
    ->pager($this->limit)
    ->execute();
}