You are here

protected function BrokenLinkListBuilder::getEntityIds in Broken Link 8.3

Same name and namespace in other branches
  1. 8 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 43

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();
}