You are here

class DeveloperIdCache in Apigee Edge 8

Default developer id cache implementation.

It stores developer email addresses, developer ids (UUIDs) should not be saved to this cache.

DeveloperControllerInterface::getEntityIds() returns email addresses.

Hierarchy

Expanded class hierarchy of DeveloperIdCache

1 string reference to 'DeveloperIdCache'
apigee_edge.services.yml in ./apigee_edge.services.yml
apigee_edge.services.yml
1 service uses DeveloperIdCache
apigee_edge.controller.cache.developer_ids in ./apigee_edge.services.yml
Drupal\apigee_edge\Entity\Controller\Cache\DeveloperIdCache

File

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

Namespace

Drupal\apigee_edge\Entity\Controller\Cache
View source
class DeveloperIdCache extends EntityIdCache implements EntityIdCacheInterface {

  /**
   * {@inheritdoc}
   */
  protected function getEntityId(EntityInterface $entity) : string {

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

}

Members

Namesort descending Modifiers Type Description Overrides
DeveloperIdCache::getEntityId protected function Returns the unique id of an entity that getEntityIds() returns as well. Overrides EntityIdCache::getEntityId
EntityIdCache::$allIdsInCache private property Indicates whether all entity ids in cache all or not.
EntityIdCache::$ids private property Stored entity ids.
EntityIdCache::allIdsInCache final public function Changes whether all ids in the cache or not. Overrides EntityIdCacheInterface::allIdsInCache
EntityIdCache::doRemoveIds protected function Allows to perform additional tasks after entity ids got deleted from cache.
EntityIdCache::doSaveIds protected function Allows to perform additional tasks after entity ids got saved to cache.
EntityIdCache::getIds final public function Returns cached ids. Overrides EntityIdCacheInterface::getIds
EntityIdCache::isAllIdsInCache final public function Returns whether all entity ids in cache or not. Overrides EntityIdCacheInterface::isAllIdsInCache
EntityIdCache::removeIds final public function Removes ids from the cache. Overrides EntityIdCacheInterface::removeIds
EntityIdCache::saveEntities final public function Adds entities to the cache. Overrides EntityIdCacheInterface::saveEntities
EntityIdCache::saveIds final public function Adds entity ids to the cache. Overrides EntityIdCacheInterface::saveIds
EntityIdCache::__sleep public function Prevents data stored in entity id cache from being serialized.