protected function EntityInlineForm::getFormDisplay in Inline Entity Form 8
Gets the form display for the given entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity.
string $form_mode: The form mode.
Return value
\Drupal\Core\Entity\Display\EntityFormDisplayInterface The form display.
3 calls to EntityInlineForm::getFormDisplay()
- EntityInlineForm::buildEntity in src/
Form/ EntityInlineForm.php - Builds an updated entity object based upon the submitted form values.
- EntityInlineForm::entityForm in src/
Form/ EntityInlineForm.php - Builds the entity form.
- EntityInlineForm::entityFormValidate in src/
Form/ EntityInlineForm.php - Validates the entity form.
File
- src/
Form/ EntityInlineForm.php, line 354
Class
- EntityInlineForm
- Generic entity inline form handler.
Namespace
Drupal\inline_entity_form\FormCode
protected function getFormDisplay(ContentEntityInterface $entity, $form_mode) {
return EntityFormDisplay::collectRenderDisplay($entity, $form_mode);
}