function QuickEditFieldForm::submitForm
Same name in other branches
- 9 core/modules/quickedit/src/Form/QuickEditFieldForm.php \Drupal\quickedit\Form\QuickEditFieldForm::submitForm()
Saves the entity with updated values for the edited field.
Overrides FormInterface::submitForm
File
-
core/
modules/ quickedit/ src/ Form/ QuickEditFieldForm.php, line 156
Class
- QuickEditFieldForm
- Builds and process a form for editing a single entity field.
Namespace
Drupal\quickedit\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$entity = $this->buildEntity($form, $form_state);
$form_state->set('entity', $entity);
// Store entity in tempstore with its UUID as tempstore key.
$this->tempStoreFactory
->get('quickedit')
->set($entity->uuid(), $entity);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.