public function DeveloperAppNameCacheFactory::getAppNameCache in Apigee Edge 8
Returns the same app name cache instance for an owner.
Parameters
string $owner: Developer id (UUID), email address or a company's company name.
Return value
\Drupal\apigee_edge\Entity\Controller\Cache\EntityIdCacheInterface The app name cache instance that belongs to the owner.
Overrides AppNameCacheByOwnerFactoryInterface::getAppNameCache
File
- src/
Entity/ Controller/ Cache/ DeveloperAppNameCacheFactory.php, line 76
Class
- DeveloperAppNameCacheFactory
- Developer specific app name cache by app owner factory service.
Namespace
Drupal\apigee_edge\Entity\Controller\CacheCode
public function getAppNameCache(string $owner) : EntityIdCacheInterface {
if ($this->emailValidator
->isValid($owner)) {
/** @var \Drupal\apigee_edge\Entity\Developer $developer */
$developer = $this->entityTypeManager
->getStorage('developer')
->load($owner);
if ($developer === NULL) {
throw new DeveloperDoesNotExistException($owner);
}
$owner = $developer
->getDeveloperId();
}
return $this->appNameCacheByOwnerFactory
->getAppNameCache($owner);
}