You are here

public function AutosaveFormInterface::getLastAutosavedFormState in Autosave Form 8

Retrieves the last autosaved form state if any present.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form, based on which to retrieve the last autosaved form state.

string $autosave_form_session_id: The autosave form session ID for which to retrieve the form state.

string|int $uid: The user id.

Return value

\Drupal\Core\Form\FormStateInterface|NULL The last autosaved form state or NULL if none present.

1 method overrides AutosaveFormInterface::getLastAutosavedFormState()
AutosaveEntityFormHandler::getLastAutosavedFormState in src/Form/AutosaveEntityFormHandler.php
Retrieves the last autosaved form state if any present.

File

src/Form/AutosaveFormInterface.php, line 79

Class

AutosaveFormInterface
Interface for providing autosave for forms.

Namespace

Drupal\autosave_form\Form

Code

public function getLastAutosavedFormState(FormStateInterface $form_state, $autosave_form_session_id, $uid);