public function FormEntityBaseForm::buildForm in Flexiform 8
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides FormInterface::buildForm
2 calls to FormEntityBaseForm::buildForm()
- FormEntityAddForm::buildForm in src/
Form/ FormEntityAddForm.php - Form constructor.
- FormEntityEditForm::buildForm in src/
Form/ FormEntityEditForm.php - Form constructor.
2 methods override FormEntityBaseForm::buildForm()
- FormEntityAddForm::buildForm in src/
Form/ FormEntityAddForm.php - Form constructor.
- FormEntityEditForm::buildForm in src/
Form/ FormEntityEditForm.php - Form constructor.
File
- src/
Form/ FormEntityBaseForm.php, line 155
Class
- FormEntityBaseForm
- Provides a base class for entity forms.
Namespace
Drupal\flexiform\FormCode
public function buildForm(array $form, FormStateInterface $form_state, FlexiformEntityFormDisplayInterface $form_display = NULL) {
$this->formDisplay = $form_display;
return $form;
}