function QueueExampleForm::create

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

Code

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