You are here

protected function HttpConfigRequestListBuilder::getEntityIds in HTTP Client Manager 8

Same name and namespace in other branches
  1. 8.2 src/HttpConfigRequestListBuilder.php \Drupal\http_client_manager\HttpConfigRequestListBuilder::getEntityIds()

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

Return value

array An array of entity IDs.

Overrides EntityListBuilder::getEntityIds

File

src/HttpConfigRequestListBuilder.php, line 50

Class

HttpConfigRequestListBuilder
Provides a listing of Http Config Request entities.

Namespace

Drupal\http_client_manager

Code

protected function getEntityIds() {
  $query = $this
    ->getStorage()
    ->getQuery()
    ->condition('service_api', $this->request
    ->get('serviceApi'))
    ->condition('command_name', $this->request
    ->get('commandName'))
    ->sort($this->entityType
    ->getKey('id'));

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