You are here

public function AutosaveFormInterface::getLastAutosavedTimestamp in Autosave Form 8

Retrieves the last autosaved timestamp.

Parameters

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

string|int $uid: The user id.

Return value

int The last autosaved timestamp.

1 method overrides AutosaveFormInterface::getLastAutosavedTimestamp()
AutosaveEntityFormHandler::getLastAutosavedTimestamp in src/Form/AutosaveEntityFormHandler.php
Retrieves the last autosaved timestamp.

File

src/Form/AutosaveFormInterface.php, line 63

Class

AutosaveFormInterface
Interface for providing autosave for forms.

Namespace

Drupal\autosave_form\Form

Code

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