function DbtngExampleUpdateForm::create
Same name in other branches
- 8.x-1.x dbtng_example/src/Form/DbtngExampleUpdateForm.php \Drupal\dbtng_example\Form\DbtngExampleUpdateForm::create()
- 4.0.x modules/dbtng_example/src/Form/DbtngExampleUpdateForm.php \Drupal\dbtng_example\Form\DbtngExampleUpdateForm::create()
Overrides FormBase::create
File
-
modules/
dbtng_example/ src/ Form/ DbtngExampleUpdateForm.php, line 34
Class
- DbtngExampleUpdateForm
- Sample UI to update a record.
Namespace
Drupal\dbtng_example\FormCode
public static function create(ContainerInterface $container) {
$form = new static($container->get('dbtng_example.repository'));
$form->setStringTranslation($container->get('string_translation'));
$form->setMessenger($container->get('messenger'));
return $form;
}