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()
4 methods override EntityForm::form()
- ContentEntityForm::form in core/
lib/ Drupal/ Core/ Entity/ ContentEntityForm.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().
- ViewDuplicateForm::form in core/
modules/ views_ui/ src/ ViewDuplicateForm.php - Gets the actual form array to be built.
- WorkflowStateAddForm::form in core/
modules/ workflows/ src/ Form/ WorkflowStateAddForm.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.