You are here

protected function Query::getEntityIdProperties in Apigee Edge 8

Returns an array of properties that should be considered as entity ids.

Usually one entity has one primary id, but in case of Apigee Edge entities one entity could have multiple ids (primary keys). Ex.: Developer => ['email', 'developerId'].

Return value

string[] Array of property names that should be considered as unique entity ids.

1 call to Query::getEntityIdProperties()
Query::getFromStorage in src/Entity/Query/Query.php
Loads entities from the entity storage for querying.

File

src/Entity/Query/Query.php, line 136

Class

Query
Defines the entity query for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\Query

Code

protected function getEntityIdProperties() : array {
  $storage = $this->entityTypeManager
    ->getStorage($this->entityTypeId);

  /** @var \Drupal\apigee_edge\Entity\EdgeEntityInterface $entity */
  $entity = $storage
    ->create();
  return $entity::uniqueIdProperties();
}