function inline_entity_form_cleanup_form_state in Inline Entity Form 8
Same name and namespace in other branches
- 7 inline_entity_form.module \inline_entity_form_cleanup_form_state()
Button #submit callback: Cleans up form state for a closed entity form.
Parameters
$form: The complete parent form.
$form_state: The form state of the parent form.
1 string reference to 'inline_entity_form_cleanup_form_state'
- InlineEntityFormComplex::buildEntityFormActions in src/
Plugin/ Field/ FieldWidget/ InlineEntityFormComplex.php - Adds actions to the inline entity form.
File
- ./
inline_entity_form.module, line 232 - Provides a widget for inline management (creation, modification, removal) of referenced entities. The primary use case is the parent -> children one (for example, order -> line items), where the child entities are never managed outside the…
Code
function inline_entity_form_cleanup_form_state($form, FormStateInterface $form_state) {
$element = inline_entity_form_get_element($form, $form_state);
EntityInlineForm::submitCleanFormState($element['form']['inline_entity_form'], $form_state);
}