You are here

protected function EasyEmailListBuilder::getEntityIds in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x src/EasyEmailListBuilder.php \Drupal\easy_email\EasyEmailListBuilder::getEntityIds()

@inheritDoc

Overrides EntityListBuilder::getEntityIds

File

src/EasyEmailListBuilder.php, line 19

Class

EasyEmailListBuilder
Defines a class to build a listing of Email entities.

Namespace

Drupal\easy_email

Code

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

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