public function CommerceContentEntityStorage::__construct in Commerce Core 8.2
Constructs a new CommerceContentEntityStorage object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Database\Connection $database: The database connection to be used.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend to be used.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
Overrides SqlContentEntityStorage::__construct
5 calls to CommerceContentEntityStorage::__construct()
- LogStorage::__construct in modules/
log/ src/ LogStorage.php - Constructs a new CommerceContentEntityStorage object.
- OrderStorage::__construct in modules/
order/ src/ OrderStorage.php - Constructs a new OrderStorage object.
- PaymentMethodStorage::__construct in modules/
payment/ src/ PaymentMethodStorage.php - Constructs a new PaymentMethodStorage object.
- ProductVariationStorage::__construct in modules/
product/ src/ ProductVariationStorage.php - Constructs a new ProductVariationStorage object.
- PromotionStorage::__construct in modules/
promotion/ src/ PromotionStorage.php - Constructs a new PromotionStorage object.
5 methods override CommerceContentEntityStorage::__construct()
- LogStorage::__construct in modules/
log/ src/ LogStorage.php - Constructs a new CommerceContentEntityStorage object.
- OrderStorage::__construct in modules/
order/ src/ OrderStorage.php - Constructs a new OrderStorage object.
- PaymentMethodStorage::__construct in modules/
payment/ src/ PaymentMethodStorage.php - Constructs a new PaymentMethodStorage object.
- ProductVariationStorage::__construct in modules/
product/ src/ ProductVariationStorage.php - Constructs a new ProductVariationStorage object.
- PromotionStorage::__construct in modules/
promotion/ src/ PromotionStorage.php - Constructs a new PromotionStorage object.
File
- src/
CommerceContentEntityStorage.php, line 54
Class
- CommerceContentEntityStorage
- The default Commerce storage for content entities.
Namespace
Drupal\commerceCode
public function __construct(EntityTypeInterface $entity_type, Connection $database, EntityFieldManagerInterface $entity_field_manager, CacheBackendInterface $cache, LanguageManagerInterface $language_manager, MemoryCacheInterface $memory_cache, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $event_dispatcher) {
parent::__construct($entity_type, $database, $entity_field_manager, $cache, $language_manager, $memory_cache, $entity_type_bundle_info, $entity_type_manager);
$this->eventDispatcher = $event_dispatcher;
}