You are here

public function YamlFormSubmissionStorageInterface::getLastSubmission in YAML Form 8

Get a form's last submission.

Parameters

\Drupal\yamlform\YamlFormInterface $yamlform: A form.

\Drupal\Core\Entity\EntityInterface|null $source_entity: (optional) A form submission source entity.

\Drupal\Core\Session\AccountInterface $account: The current user account.

Return value

\Drupal\yamlform\YamlFormSubmissionInterface|null The form's last submission.

1 method overrides YamlFormSubmissionStorageInterface::getLastSubmission()
YamlFormSubmissionStorage::getLastSubmission in src/YamlFormSubmissionStorage.php
Get a form's last submission.

File

src/YamlFormSubmissionStorageInterface.php, line 136

Class

YamlFormSubmissionStorageInterface
Defines an interface for form submission classes.

Namespace

Drupal\yamlform

Code

public function getLastSubmission(YamlFormInterface $yamlform, EntityInterface $source_entity = NULL, AccountInterface $account = NULL);