You are here

public function ReactionRuleStorage::__construct in Rules 8.3

Constructs a ReactionRuleStorage object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Component\Uuid\UuidInterface $uuid_service: The UUID service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\State\StateInterface $state_service: The state service.

\Drupal\Core\DrupalKernelInterface $drupal_kernel: The Drupal kernel.

\Drupal\rules\Core\RulesEventManager $event_manager: The Rules event manager.

\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface|null $memory_cache: The memory cache backend.

Overrides ConfigEntityStorage::__construct

File

src/Entity/ReactionRuleStorage.php, line 66

Class

ReactionRuleStorage
Storage handler for Reaction Rule configuration entities.

Namespace

Drupal\rules\Entity

Code

public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, StateInterface $state_service, DrupalKernelInterface $drupal_kernel, RulesEventManager $event_manager, MemoryCacheInterface $memory_cache = NULL) {
  parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache);
  $this->stateService = $state_service;
  $this->drupalKernel = $drupal_kernel;
  $this->eventManager = $event_manager;
}