function EmailExampleGetFormPage::create
Same name in other branches
- 4.0.x modules/email_example/src/Form/EmailExampleGetFormPage.php \Drupal\email_example\Form\EmailExampleGetFormPage::create()
Overrides FormBase::create
File
-
modules/
email_example/ src/ Form/ EmailExampleGetFormPage.php, line 59
Class
- EmailExampleGetFormPage
- File test form class.
Namespace
Drupal\email_example\FormCode
public static function create(ContainerInterface $container) {
$form = new static($container->get('plugin.manager.mail'), $container->get('language_manager'), $container->get('email.validator'));
$form->setMessenger($container->get('messenger'));
$form->setStringTranslation($container->get('string_translation'));
return $form;
}