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

    $this->limit = 1000;
    if ($this->limit) {
      $query->pager($this->limit);
    }

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

    $this->limit = 1000;
    if ($this->limit) {
      $query->pager($this->limit);
    }

    return $query->execute();
  }
protected function getEntityIds ( ) { $ query = $ this -> getStorage ( ) -> getQuery ( ) -> sort ( $ this -> entityType -> getKey ( 'id' ) , 'DESC' ) ; $ this -> limit = 1000 ; if ( $ this -> limit ) { $ query -> pager ( $ this -> limit ) ; } return $ query -> execute ( ) ; }
Loads entity IDs using a pager sorted by the entity id.

@return array
An array of entity IDs.
Loads entity IDs using a pager sorted by the entity id .