function EntityForm::form
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::form()
- 10 core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::form()
- 8.9.x core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::form()
Gets the actual form array to be built.
See also
\Drupal\Core\Entity\EntityForm::processForm()
\Drupal\Core\Entity\EntityForm::afterBuild()
5 methods override EntityForm::form()
- LanguageAddForm::form in core/
modules/ language/ src/ Form/ LanguageAddForm.php - Gets the actual form array to be built.
- LanguageEditForm::form in core/
modules/ language/ src/ Form/ LanguageEditForm.php - Gets the actual form array to be built.
- MediaTypeForm::form in core/
modules/ media/ src/ MediaTypeForm.php - Gets the actual form array to be built.
- ResponsiveImageStyleForm::form in core/
modules/ responsive_image/ src/ ResponsiveImageStyleForm.php - Overrides Drupal\Core\Entity\EntityForm::form().
- WorkflowTransitionEditForm::form in core/
modules/ workflows/ src/ Form/ WorkflowTransitionEditForm.php - Gets the actual form array to be built.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityForm.php, line 138
Class
- EntityForm
- Base class for entity forms.
Namespace
Drupal\Core\EntityCode
public function form(array $form, FormStateInterface $form_state) {
// Add #process and #after_build callbacks.
$form['#process'][] = '::processForm';
$form['#after_build'][] = '::afterBuild';
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.