public function EntityCacheInterface::getEntity in Apigee Edge 8
Returns an entity from the cache by its id.
Parameters
string $id: Entity id.
Return value
\Apigee\Edge\Entity\EntityInterface|null The entity if it is in the cache, null otherwise.
2 methods override EntityCacheInterface::getEntity()
- AppCacheByOwner::getEntity in src/
Entity/ Controller/ Cache/ AppCacheByOwner.php - Returns an entity from the cache by its id.
- EntityCache::getEntity in src/
Entity/ Controller/ Cache/ EntityCache.php - Returns an entity from the cache by its id.
File
- src/
Entity/ Controller/ Cache/ EntityCacheInterface.php, line 69
Class
- EntityCacheInterface
- Base definition of the entity cache used by controllers.
Namespace
Drupal\apigee_edge\Entity\Controller\CacheCode
public function getEntity(string $id) : ?EntityInterface;