public function YamlFormSubmissionStorage::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.
Overrides YamlFormSubmissionStorageInterface::getLastSubmission
File
- src/
YamlFormSubmissionStorage.php, line 177
Class
- YamlFormSubmissionStorage
- Defines the form submission storage.
Namespace
Drupal\yamlformCode
public function getLastSubmission(YamlFormInterface $yamlform, EntityInterface $source_entity = NULL, AccountInterface $account = NULL) {
return $this
->getTerminusSubmission($yamlform, $source_entity, $account, 'DESC');
}