protected function BrokenLinkRedirectListBuilder::getEntityIds in Broken Link 8
Same name and namespace in other branches
- 8.3 src/BrokenLinkRedirectListBuilder.php \Drupal\broken_link\BrokenLinkRedirectListBuilder::getEntityIds()
- 8.2 src/BrokenLinkRedirectListBuilder.php \Drupal\broken_link\BrokenLinkRedirectListBuilder::getEntityIds()
Loads entity IDs using a pager sorted by the entity weightage.
Return value
array An array of entity IDs.
Overrides EntityListBuilder::getEntityIds
File
- src/
BrokenLinkRedirectListBuilder.php, line 41
Class
- BrokenLinkRedirectListBuilder
- Provides a listing of Broken link redirect entity entities.
Namespace
Drupal\broken_linkCode
protected function getEntityIds() {
$query = $this
->getStorage()
->getQuery()
->sort('weight');
// Only add the pager if a limit is specified.
if ($this->limit) {
$query
->pager($this->limit);
}
return $query
->execute();
}