function QueueExampleForm::create
Same name in other branches
- 3.x modules/queue_example/src/Form/QueueExampleForm.php \Drupal\queue_example\Form\QueueExampleForm::create()
- 8.x-1.x queue_example/src/Forms/QueueExampleForm.php \Drupal\queue_example\Forms\QueueExampleForm::create()
Overrides FormBase::create
File
-
modules/
queue_example/ src/ Form/ QueueExampleForm.php, line 76
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;
}