public function AutosaveEntityFormStorageInterface::hasAutosavedState in Autosave Form 8
Checks if there is any autosaved entity.
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 to store.
string $langcode: The language code of the original entity.
$uid: The user id.
string $form_session_id: (optional) The form session id.
Return value
bool TRUE, if any autosaved entities have been found, FALSE otherwise.
1 method overrides AutosaveEntityFormStorageInterface::hasAutosavedState()
- AutosaveEntityFormDatabaseStorage::hasAutosavedState in src/
Storage/ AutosaveEntityFormDatabaseStorage.php - Checks if there is any autosaved entity.
File
- src/
Storage/ AutosaveEntityFormStorageInterface.php, line 150
Class
- AutosaveEntityFormStorageInterface
- Interface for providing autosave storage for entity forms.
Namespace
Drupal\autosave_form\StorageCode
public function hasAutosavedState($form_id, $entity_type_id, $entity_id, $langcode, $uid, $form_session_id = NULL);