protected function ConfigPagesListBuilder::getEntityIds in Config Pages 8
Same name and namespace in other branches
- 8.3 src/ConfigPagesListBuilder.php \Drupal\config_pages\ConfigPagesListBuilder::getEntityIds()
- 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 132
Class
- ConfigPagesListBuilder
- Defines a class to build a listing of custom config_pages entities.
Namespace
Drupal\config_pagesCode
protected function getEntityIds() {
$query = $this->cpt_storage
->getQuery();
$keys = $this->entityType
->getKeys();
return $query
->sort($keys['id'])
->pager($this->limit)
->execute();
}