You are here

public function SchedulerCronForm::__construct in Scheduler 8

Same name and namespace in other branches
  1. 2.x src/Form/SchedulerCronForm.php \Drupal\scheduler\Form\SchedulerCronForm::__construct()

Creates a SchedulerCronForm instance.

The factory for configuration objects. @var \Drupal\Core\Extension\ModuleHandlerInterface $module_handler The module handler service. @var \Drupal\scheduler\SchedulerManager $scheduler_manager The scheduler manager service.

Overrides ConfigFormBase::__construct

File

src/Form/SchedulerCronForm.php, line 42

Class

SchedulerCronForm
Scheduler Lightweight Cron form.

Namespace

Drupal\scheduler\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, SchedulerManager $scheduler_manager) {
  parent::__construct($config_factory);
  $this->moduleHandler = $module_handler;
  $this->schedulerManager = $scheduler_manager;
}