function EventsExampleForm::create

Same name in other branches
  1. 4.0.x modules/events_example/src/Form/EventsExampleForm.php \Drupal\events_example\Form\EventsExampleForm::create()

Overrides FormBase::create

File

modules/events_example/src/Form/EventsExampleForm.php, line 54

Class

EventsExampleForm
Implements the SimpleForm form controller.

Namespace

Drupal\events_example\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('event_dispatcher'));
}