protected function UrlRedirectListBuilder::getEntityIds in Url Redirect 8.2
Same name and namespace in other branches
- 8 src/Controller/UrlRedirectListBuilder.php \Drupal\url_redirect\Controller\UrlRedirectListBuilder::getEntityIds()
Loads entity IDs using a pager sorted by the entity id.
Return value
array An array of entity IDs.
Overrides EntityListBuilder::getEntityIds
File
- src/
Controller/ UrlRedirectListBuilder.php, line 18
Class
- UrlRedirectListBuilder
- Provides a listing of UrlRedirect.
Namespace
Drupal\url_redirect\ControllerCode
protected function getEntityIds() {
$query = $this
->getStorage()
->getQuery()
->sort($this->entityType
->getKey('id'));
// Only add the pager if a limit is specified.
if ($this->limit) {
$query
->pager($this->limit);
}
return $query
->execute();
}