You are here

protected function EdgeEntityListBuilder::buildEntityIdQuery in Apigee Edge 8

Builds an entity query used by entity listing.

Return value

\Drupal\Core\Entity\Query\QueryInterface The entity query.

3 calls to EdgeEntityListBuilder::buildEntityIdQuery()
DeveloperAppListBuilderForDeveloper::buildEntityIdQuery in src/Entity/ListBuilder/DeveloperAppListBuilderForDeveloper.php
Builds an entity query used by entity listing.
EdgeEntityListBuilder::getEntityIds in src/Entity/ListBuilder/EdgeEntityListBuilder.php
Loads entity IDs using a pager sorted by the entity id.
TeamAppListByTeam::buildEntityIdQuery in modules/apigee_edge_teams/src/Entity/ListBuilder/TeamAppListByTeam.php
Builds an entity query used by entity listing.
2 methods override EdgeEntityListBuilder::buildEntityIdQuery()
DeveloperAppListBuilderForDeveloper::buildEntityIdQuery in src/Entity/ListBuilder/DeveloperAppListBuilderForDeveloper.php
Builds an entity query used by entity listing.
TeamAppListByTeam::buildEntityIdQuery in modules/apigee_edge_teams/src/Entity/ListBuilder/TeamAppListByTeam.php
Builds an entity query used by entity listing.

File

src/Entity/ListBuilder/EdgeEntityListBuilder.php, line 110

Class

EdgeEntityListBuilder
Default entity list builder for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\ListBuilder

Code

protected function buildEntityIdQuery() : QueryInterface {
  $headers = $this
    ->buildHeader();
  $query = $this
    ->getStorage()
    ->getQuery()
    ->tableSort($headers);

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