public function CronForm::__construct

Constructs a CronForm object.

Parameters

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

\Drupal\Core\Config\Context\ContextInterface $context: The configuration context used for this configuration object.

\Drupal\Core\KeyValueStore\KeyValueStoreInterface $state: The state key value store.

Overrides SystemConfigFormBase::__construct

File

drupal/core/modules/system/lib/Drupal/system/Form/CronForm.php, line 39
Contains \Drupal\system\Form\CronForm.

Class

CronForm
Configure cron settings for this site.

Namespace

Drupal\system\Form

Code

public function __construct(ConfigFactory $config_factory, ContextInterface $context, KeyValueFactory $key_value_factory) {
  parent::__construct($config_factory, $context);
  $this->state = $key_value_factory
    ->get('state');
}