function FormBase::create

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::create()
  2. 10 core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::create()
  3. 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

... See full list

File

core/lib/Drupal/Core/Form/FormBase.php, line 81

Class

FormBase
Provides a base class for forms.

Namespace

Drupal\Core\Form

Code

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.