public function ApiProductStorage::__construct in Apigee Edge 8
Same name in this branch
- 8 src/Entity/Storage/ApiProductStorage.php \Drupal\apigee_edge\Entity\Storage\ApiProductStorage::__construct()
- 8 modules/apigee_edge_apiproduct_rbac/tests/modules/apigee_edge_apiproduct_rbac_test/src/ApiProductStorage.php \Drupal\apigee_edge_apiproduct_rbac_test\ApiProductStorage::__construct()
Constructs an APIProductStorage instance.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend to be used.
\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache.
\Drupal\Component\Datetime\TimeInterface $system_time: The system time.
\Drupal\apigee_edge\Entity\Controller\ApiProductControllerInterface $api_product_controller: The API product controller service.
\Drupal\Core\Config\ConfigFactoryInterface $config: Configuration factory.
Overrides EdgeEntityStorageBase::__construct
1 call to ApiProductStorage::__construct()
- ApiProductStorage::__construct in modules/
apigee_edge_apiproduct_rbac/ tests/ modules/ apigee_edge_apiproduct_rbac_test/ src/ ApiProductStorage.php - Constructs an APIProductStorage instance.
1 method overrides ApiProductStorage::__construct()
- ApiProductStorage::__construct in modules/
apigee_edge_apiproduct_rbac/ tests/ modules/ apigee_edge_apiproduct_rbac_test/ src/ ApiProductStorage.php - Constructs an APIProductStorage instance.
File
- src/
Entity/ Storage/ ApiProductStorage.php, line 62
Class
- ApiProductStorage
- Entity storage class for API product entities.
Namespace
Drupal\apigee_edge\Entity\StorageCode
public function __construct(EntityTypeInterface $entity_type, CacheBackendInterface $cache_backend, MemoryCacheInterface $memory_cache, TimeInterface $system_time, ApiProductControllerInterface $api_product_controller, ConfigFactoryInterface $config) {
parent::__construct($entity_type, $cache_backend, $memory_cache, $system_time);
$this->cacheExpiration = $config
->get('apigee_edge.api_product_settings')
->get('cache_expiration');
$this->apiProductController = $api_product_controller;
}