public function FormEntityEditForm::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 FormEntityBaseForm::buildForm
File
- src/
Form/ FormEntityEditForm.php, line 24
Class
- FormEntityEditForm
- Provides the entity edit form.
Namespace
Drupal\flexiform\FormCode
public function buildForm(array $form, FormStateInterface $form_state, FlexiformEntityFormDisplayInterface $form_display = NULL, $entity_namespace = '') {
$form_state = MultipleEntityFormState::createForForm($form, $form_state);
$form = parent::buildForm($form, $form_state, $form_display);
$form_entity = $this
->formEntityManager($form_state)
->getFormEntity($entity_namespace);
return $this
->buildConfigurationForm($form, $form_state, $form_entity, $entity_namespace);
}