function FormBase::create
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::create()
- 10 core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::create()
- 8.9.x core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::create()
9 methods override FormBase::create()
- ConfigureSectionForm::create in core/
modules/ layout_builder/ src/ Form/ ConfigureSectionForm.php - ContentEntityForm::create in core/
lib/ Drupal/ Core/ Entity/ ContentEntityForm.php - Instantiates a new instance of this class.
- EntityFormDisplayEditForm::create in core/
modules/ field_ui/ src/ Form/ EntityFormDisplayEditForm.php - EntityModerationForm::create in core/
modules/ content_moderation/ src/ Form/ EntityModerationForm.php - LayoutBuilderDisableForm::create in core/
modules/ layout_builder/ src/ Form/ LayoutBuilderDisableForm.php
File
-
core/
lib/ Drupal/ Core/ Form/ FormBase.php, line 81
Class
- FormBase
- Provides a base class for forms.
Namespace
Drupal\Core\FormCode
public static function create(ContainerInterface $container) {
return new static();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.