function EntityForm::form
Same name in other branches
- 9 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()
- 10 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()
28 calls to EntityForm::form()
- ActionFormBase::form in core/
modules/ action/ src/ Form/ ActionFormBase.php - Gets the actual form array to be built.
- BlockContentTypeForm::form in core/
modules/ block_content/ src/ BlockContentTypeForm.php - CommentTypeForm::form in core/
modules/ comment/ src/ CommentTypeForm.php - ConfigTestForm::form in core/
modules/ config/ tests/ config_test/ src/ ConfigTestForm.php - ContentEntityForm::form in core/
lib/ Drupal/ Core/ Entity/ ContentEntityForm.php
36 methods override EntityForm::form()
- ActionFormBase::form in core/
modules/ action/ src/ Form/ ActionFormBase.php - Gets the actual form array to be built.
- BlockContentTypeForm::form in core/
modules/ block_content/ src/ BlockContentTypeForm.php - BlockForm::form in core/
modules/ block/ src/ BlockForm.php - CommentTypeForm::form in core/
modules/ comment/ src/ CommentTypeForm.php - ConfigTestForm::form in core/
modules/ config/ tests/ config_test/ src/ ConfigTestForm.php
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityForm.php, line 139
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.