public function EntityForm::form in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::form()
- 9 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()
2 calls to EntityForm::form()
- EntityForm::buildForm in core/
lib/ Drupal/ Core/ Entity/ EntityForm.php - Form constructor.
- ImageStyleDeleteForm::form in core/
modules/ image/ src/ Form/ ImageStyleDeleteForm.php - Gets the actual form array to be built.
27 methods override EntityForm::form()
- ActionFormBase::form in core/
modules/ action/ src/ Form/ ActionFormBase.php - Gets the actual form array to be built.
- BlockForm::form in core/
modules/ block/ src/ BlockForm.php - Gets the actual form array to be built.
- CommentTypeForm::form in core/
modules/ comment/ src/ CommentTypeForm.php - Gets the actual form array to be built.
- ContactFormEditForm::form in core/
modules/ contact/ src/ ContactFormEditForm.php - Gets the actual form array to be built.
- ContentEntityForm::form in core/
lib/ Drupal/ Core/ Entity/ ContentEntityForm.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;
}