You are here

protected function DeveloperIdCache::getEntityId in Apigee Edge 8

Returns the unique id of an entity that getEntityIds() returns as well.

Parameters

\Apigee\Edge\Entity\EntityInterface $entity: Entity object.

Return value

string Unique id from the entity that getEntityIds() returns as well.

Overrides EntityIdCache::getEntityId

File

src/Entity/Controller/Cache/DeveloperIdCache.php, line 38

Class

DeveloperIdCache
Default developer id cache implementation.

Namespace

Drupal\apigee_edge\Entity\Controller\Cache

Code

protected function getEntityId(EntityInterface $entity) : string {

  /** @var \Drupal\apigee_edge\Entity\DeveloperInterface $entity */
  return $entity
    ->getEmail();
}