You are here

public function TeamStorage::__construct in Apigee Edge 8

Constructs an DeveloperStorage 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_teams\Entity\Controller\TeamControllerInterface $team_controller: The team controller service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Config\ConfigFactoryInterface $config: Configuration factory.

\Psr\Log\LoggerInterface $logger: The logger.

Overrides EdgeEntityStorageBase::__construct

File

modules/apigee_edge_teams/src/Entity/Storage/TeamStorage.php, line 88

Class

TeamStorage
Entity storage implementation for teams.

Namespace

Drupal\apigee_edge_teams\Entity\Storage

Code

public function __construct(EntityTypeInterface $entity_type, CacheBackendInterface $cache_backend, MemoryCacheInterface $memory_cache, TimeInterface $system_time, TeamControllerInterface $team_controller, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config, LoggerInterface $logger) {
  parent::__construct($entity_type, $cache_backend, $memory_cache, $system_time);
  $this->teamController = $team_controller;
  $this->cacheExpiration = $config
    ->get('apigee_edge_teams.team_settings')
    ->get('cache_expiration');
  $this->entityTypeManager = $entity_type_manager;
  $this->logger = $logger;
}