function SessionExampleForm::create
Same name in other branches
- 3.x modules/session_example/src/Form/SessionExampleForm.php \Drupal\session_example\Form\SessionExampleForm::create()
Overrides FormBase::create
File
-
modules/
session_example/ src/ Form/ SessionExampleForm.php, line 58
Class
- SessionExampleForm
- Form to allow the user to store information in their session.
Namespace
Drupal\session_example\FormCode
public static function create(ContainerInterface $container) {
return new static($container->get('session'), $container->get('cache_tags.invalidator'));
}