You are here

protected function BrokenLinkListBuilder::getEntityIds in Broken Link 8

Same name and namespace in other branches
  1. 8.3 src/BrokenLinkListBuilder.php \Drupal\broken_link\BrokenLinkListBuilder::getEntityIds()
  2. 8.2 src/BrokenLinkListBuilder.php \Drupal\broken_link\BrokenLinkListBuilder::getEntityIds()

Loads entity IDs using a pager sorted by the hits.

Return value

array An array of entity IDs.

Overrides EntityListBuilder::getEntityIds

File

src/BrokenLinkListBuilder.php, line 37

Class

BrokenLinkListBuilder
Provides a listing of Broken link redirect entity entities.

Namespace

Drupal\broken_link

Code

protected function getEntityIds() {
  $query = $this
    ->getStorage()
    ->getQuery()
    ->sort('hits', 'DESC');

  // Only add the pager if a limit is specified.
  if ($this->limit) {
    $query
      ->pager($this->limit);
  }
  return $query
    ->execute();
}