You are here

protected function TeamAppListByTeam::buildEntityIdQuery in Apigee Edge 8

Builds an entity query used by entity listing.

Return value

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

Overrides EdgeEntityListBuilder::buildEntityIdQuery

File

modules/apigee_edge_teams/src/Entity/ListBuilder/TeamAppListByTeam.php, line 100

Class

TeamAppListByTeam
Lists team apps of a team on the UI.

Namespace

Drupal\apigee_edge_teams\Entity\ListBuilder

Code

protected function buildEntityIdQuery() : QueryInterface {
  $query = parent::buildEntityIdQuery();
  $team = $this->routeMatch
    ->getParameter('team');
  $query
    ->condition('companyName', $team
    ->id());
  return $query;
}