public function AutosaveEntityFormStorageInterface::getFormState in Autosave Form 8
Retrieves the form state.
The timestamp of the autosaved state will be set into the form state storage under the key 'autosave_form_state_timestamp'.
Parameters
$form_id: The form id.
string $entity_type_id: The entity type id of the entity.
mixed $entity_id: The id of the entity.
string $langcode: The language code of the original entity.
$uid: The user id.
$form_session_id: (optional) The form session id.
$timestamp: (optional) The timestamp for which to load the form state.
Return value
\Drupal\Core\Form\FormStateInterface The form state.
1 method overrides AutosaveEntityFormStorageInterface::getFormState()
- AutosaveEntityFormDatabaseStorage::getFormState in src/
Storage/ AutosaveEntityFormDatabaseStorage.php - Retrieves the form state.
File
- src/
Storage/ AutosaveEntityFormStorageInterface.php, line 115
Class
- AutosaveEntityFormStorageInterface
- Interface for providing autosave storage for entity forms.
Namespace
Drupal\autosave_form\StorageCode
public function getFormState($form_id, $entity_type_id, $entity_id, $langcode, $uid, $form_session_id = NULL, $timestamp = NULL);