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