You are here

public function AutosaveFormInterface::purgeCurrentAutosavedState in Autosave Form 8

Purges the current autosave state session for the form state and user.

Parameters

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

string|int $uid: The user id for which to purge the autosaved states.

1 method overrides AutosaveFormInterface::purgeCurrentAutosavedState()
AutosaveEntityFormHandler::purgeCurrentAutosavedState in src/Form/AutosaveEntityFormHandler.php
Purges the current autosave state session for the form state and user.

File

src/Form/AutosaveFormInterface.php, line 89

Class

AutosaveFormInterface
Interface for providing autosave for forms.

Namespace

Drupal\autosave_form\Form

Code

public function purgeCurrentAutosavedState(FormStateInterface $form_state, $uid);