You are here

public function InlineFormInterface::entityForm in Inline Entity Form 8

Builds the entity form.

Parameters

array $entity_form: The entity form, containing the following basic properties:

  • #entity: The entity for the current entity form.
  • #op: The form operation. 'add' or 'edit'.
  • #form_mode: The form mode used to display the entity form.
  • #parents: Identifies the position of the entity form in the overall parent form, and identifies the location where the field values are placed within $form_state->getValues().

\Drupal\Core\Form\FormStateInterface $form_state: The form state of the parent form.

1 method overrides InlineFormInterface::entityForm()
EntityInlineForm::entityForm in src/Form/EntityInlineForm.php
Builds the entity form.

File

src/InlineFormInterface.php, line 102

Class

InlineFormInterface
Defines the interface for inline form handlers.

Namespace

Drupal\inline_entity_form

Code

public function entityForm(array $entity_form, FormStateInterface $form_state);