function CronExampleForm::create

Same name in other branches
  1. 3.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\Form

Code

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;
}