function QueueExampleForm::create
Same name in other branches
- 8.x-1.x queue_example/src/Forms/QueueExampleForm.php \Drupal\queue_example\Forms\QueueExampleForm::create()
- 4.0.x modules/queue_example/src/Form/QueueExampleForm.php \Drupal\queue_example\Form\QueueExampleForm::create()
Overrides FormBase::create
File
-
modules/
queue_example/ src/ Form/ QueueExampleForm.php, line 71
Class
- QueueExampleForm
- Form with examples on how to use queue.
Namespace
Drupal\queue_example\FormCode
public static function create(ContainerInterface $container) {
$form = new static($container->get('queue'), $container->get('database'), $container->get('cron'), $container->get('settings'));
$form->setMessenger($container->get('messenger'));
return $form;
}