You are here

public function CronForm::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/src/Form/CronForm.php \Drupal\system\Form\CronForm::__construct()
  2. 10 core/modules/system/src/Form/CronForm.php \Drupal\system\Form\CronForm::__construct()

Constructs a CronForm object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\State\StateInterface $state: The state key value store.

\Drupal\Core\CronInterface $cron: The cron service.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

File

core/modules/system/src/Form/CronForm.php, line 67

Class

CronForm
Configure cron settings for this site.

Namespace

Drupal\system\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state, CronInterface $cron, DateFormatterInterface $date_formatter, ModuleHandlerInterface $module_handler) {
  $this->state = $state;
  $this->cron = $cron;
  $this->dateFormatter = $date_formatter;
  $this->moduleHandler = $module_handler;
}