You are here

protected function ReplicationListBuilder::getEntityIds in Deploy - Content Staging 8

Loads entity IDs using a pager sorted by the entity id.

Return value

array An array of entity IDs.

Overrides EntityListBuilder::getEntityIds

File

src/ReplicationListBuilder.php, line 106

Class

ReplicationListBuilder
Defines a class to build a listing of Replication entities.

Namespace

Drupal\deploy

Code

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

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