final class AppNameCacheByOwnerFactory in Apigee Edge 8
Base definition of the app name cache service by app owner.
Hierarchy
- class \Drupal\apigee_edge\Entity\Controller\Cache\AppNameCacheByOwnerFactory implements AppNameCacheByOwnerFactoryInterface
Expanded class hierarchy of AppNameCacheByOwnerFactory
1 string reference to 'AppNameCacheByOwnerFactory'
1 service uses AppNameCacheByOwnerFactory
File
- src/
Entity/ Controller/ Cache/ AppNameCacheByOwnerFactory.php, line 26
Namespace
Drupal\apigee_edge\Entity\Controller\CacheView source
final class AppNameCacheByOwnerFactory implements AppNameCacheByOwnerFactoryInterface {
/**
* Internal cache for created instances.
*
* @var \Drupal\apigee_edge\Entity\Controller\Cache\EntityIdCacheInterface[]
*/
private $instances = [];
/**
* {@inheritdoc}
*/
public function getAppNameCache(string $owner) : EntityIdCacheInterface {
if (!isset($this->instances[$owner])) {
$this->instances[$owner] = new EntityIdCache();
}
return $this->instances[$owner];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AppNameCacheByOwnerFactory:: |
private | property | Internal cache for created instances. | |
AppNameCacheByOwnerFactory:: |
public | function |
Returns the same app name cache instance for an owner. Overrides AppNameCacheByOwnerFactoryInterface:: |