function CronForm::__construct

Same name in other branches
  1. 9 core/modules/system/src/Form/CronForm.php \Drupal\system\Form\CronForm::__construct()
  2. 8.9.x core/modules/system/src/Form/CronForm.php \Drupal\system\Form\CronForm::__construct()
  3. 11.x 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->configFactory = $config_factory;
    $this->state = $state;
    $this->cron = $cron;
    $this->dateFormatter = $date_formatter;
    $this->moduleHandler = $module_handler;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.