You are here

public function AutosaveEntityFormStorageInterface::storeEntityAndFormState in Autosave Form 8

Stores the entity together with the form state.

Parameters

string $form_id: The form id.

$form_session_id: The form session id.

string $entity_type_id: The entity type id of the entity to store.

mixed $entity_id: The id of the entity to store.

string $langcode: The language code of the original entity.

int $uid: The user id.

int $timestamp: The timestamp of the autosave.

\Drupal\Core\Entity\EntityInterface $entity: The entity object.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

1 method overrides AutosaveEntityFormStorageInterface::storeEntityAndFormState()
AutosaveEntityFormDatabaseStorage::storeEntityAndFormState in src/Storage/AutosaveEntityFormDatabaseStorage.php
Stores the entity together with the form state.

File

src/Storage/AutosaveEntityFormStorageInterface.php, line 39

Class

AutosaveEntityFormStorageInterface
Interface for providing autosave storage for entity forms.

Namespace

Drupal\autosave_form\Storage

Code

public function storeEntityAndFormState($form_id, $form_session_id, $entity_type_id, $entity_id, $langcode, $uid, $timestamp, EntityInterface $entity, FormStateInterface $form_state);