function CronExampleForm::create
Same name in other branches
- 8.x-1.x cron_example/src/Form/CronExampleForm.php \Drupal\cron_example\Form\CronExampleForm::create()
- 4.0.x modules/cron_example/src/Form/CronExampleForm.php \Drupal\cron_example\Form\CronExampleForm::create()
Overrides ConfigFormBase::create
File
-
modules/
cron_example/ src/ Form/ CronExampleForm.php, line 83
Class
- CronExampleForm
- Form with examples on how to use cron.
Namespace
Drupal\cron_example\FormCode
public static function create(ContainerInterface $container) {
$form = new static($container->get('config.factory'), $container->get('current_user'), $container->get('cron'), $container->get('queue'), $container->get('state'), $container->get('datetime.time'));
$form->setMessenger($container->get('messenger'));
return $form;
}