You are here

public function AutosaveEntityFormStorageInterface::hasAutosavedStateForFormState in Autosave Form 8

Checks if any autosaved state exist for the user based on the form state.

Parameters

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

$uid: The user id.

Return value

bool TRUE if the storage contains an autosaved state for the user id based on the form state, FALSE otherwise.

1 method overrides AutosaveEntityFormStorageInterface::hasAutosavedStateForFormState()
AutosaveEntityFormDatabaseStorage::hasAutosavedStateForFormState in src/Storage/AutosaveEntityFormDatabaseStorage.php
Checks if any autosaved state exist for the user based on the form state.

File

src/Storage/AutosaveEntityFormStorageInterface.php, line 129

Class

AutosaveEntityFormStorageInterface
Interface for providing autosave storage for entity forms.

Namespace

Drupal\autosave_form\Storage

Code

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