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
- class \Drupal\apigee_edge\Entity\Controller\Cache\EntityIdCache implements EntityIdCacheInterface
- class \Drupal\apigee_edge\Entity\Controller\Cache\DeveloperIdCache implements EntityIdCacheInterface
Expanded class hierarchy of DeveloperIdCache
1 string reference to 'DeveloperIdCache'
1 service uses DeveloperIdCache
File
- src/
Entity/ Controller/ Cache/ DeveloperIdCache.php, line 33
Namespace
Drupal\apigee_edge\Entity\Controller\CacheView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeveloperIdCache:: |
protected | function |
Returns the unique id of an entity that getEntityIds() returns as well. Overrides EntityIdCache:: |
|
EntityIdCache:: |
private | property | Indicates whether all entity ids in cache all or not. | |
EntityIdCache:: |
private | property | Stored entity ids. | |
EntityIdCache:: |
final public | function |
Changes whether all ids in the cache or not. Overrides EntityIdCacheInterface:: |
|
EntityIdCache:: |
protected | function | Allows to perform additional tasks after entity ids got deleted from cache. | |
EntityIdCache:: |
protected | function | Allows to perform additional tasks after entity ids got saved to cache. | |
EntityIdCache:: |
final public | function |
Returns cached ids. Overrides EntityIdCacheInterface:: |
|
EntityIdCache:: |
final public | function |
Returns whether all entity ids in cache or not. Overrides EntityIdCacheInterface:: |
|
EntityIdCache:: |
final public | function |
Removes ids from the cache. Overrides EntityIdCacheInterface:: |
|
EntityIdCache:: |
final public | function |
Adds entities to the cache. Overrides EntityIdCacheInterface:: |
|
EntityIdCache:: |
final public | function |
Adds entity ids to the cache. Overrides EntityIdCacheInterface:: |
|
EntityIdCache:: |
public | function | Prevents data stored in entity id cache from being serialized. |