You are here

public function RngCron::__construct in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 src/RngCron.php \Drupal\rng\RngCron::__construct()
  2. 3.x src/RngCron.php \Drupal\rng\RngCron::__construct()

Constructs a new RngEntityModel object.

Parameters

\Drupal\Core\Queue\QueueFactory $queue_factory: The queue service.

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

File

src/RngCron.php, line 36

Class

RngCron
RNG Cron.

Namespace

Drupal\rng

Code

public function __construct(QueueFactory $queue_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->ruleSchedulerQueue = $queue_factory
    ->get('rng_rule_scheduler', FALSE);
  $this->ruleSchedulerStorage = $entity_type_manager
    ->getStorage('rng_rule_scheduler');
}