public function FlexiformEntityFormDisplay::getFormEntityManager in Flexiform 8
Get the form entity manager.
Parameters
FormStateInterface $form_state:
\Drupal\Core\Entity\FieldableEntityInterface[] $provided: Provided entities to this entity manager.
bool $reset: If TRUE always create a new form entity manager.
Return value
\Drupal\flexiform\FormEntity\FlexiformFormEntityManager The form entity manager.
2 calls to FlexiformEntityFormDisplay::getFormEntityManager()
- FlexiformEntityFormDisplay::buildAdvancedForm in src/
FlexiformEntityFormDisplay.php - Build standalone form.
- FlexiformEntityFormDisplay::extractFormValues in src/
FlexiformEntityFormDisplay.php - Extracts field values from the submitted widget values into the entity.
File
- src/
FlexiformEntityFormDisplay.php, line 490
Class
- FlexiformEntityFormDisplay
- Defines a class to extend EntityFormDisplays.
Namespace
Drupal\flexiformCode
public function getFormEntityManager(MultipleEntityFormStateInterface $form_state, array $provided = [], $reset = FALSE) {
$provided += $this->providedEntities;
$this->providedEntities = $provided;
if (!$form_state
->getFormEntityManager() || $reset) {
$form_state
->setFormEntityManager(new FlexiformFormEntityManager($this, $provided));
}
return $form_state
->getFormEntityManager();
}