EntityFormBuilderInterface
interface EntityFormBuilderInterface (View source)
Builds entity forms.
This is like \Drupal\Core\Form\FormBuilderInterface but instead of looking up the form class by class name, it looks up the form class based on the entity type and operation.
Methods
array
getForm(EntityInterface $entity, string $operation = 'default', array $form_state_additions = [])
Gets the built and processed entity form for the given entity.
Details
array
getForm(EntityInterface $entity, string $operation = 'default', array $form_state_additions = [])
Gets the built and processed entity form for the given entity.
The form may also be retrieved from the cache if the form was built in a previous page load. The form is then passed on for processing, validation, and submission if there is proper input.