public function WebformSubmissionStorage::getLastSubmission in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformSubmissionStorage.php \Drupal\webform\WebformSubmissionStorage::getLastSubmission()
Get a webform's last submission.
Parameters
\Drupal\webform\WebformInterface $webform: A webform.
\Drupal\Core\Entity\EntityInterface|null $source_entity: (optional) A webform submission source entity.
\Drupal\Core\Session\AccountInterface $account: The current user account.
array $options: (optional) Additional options and query conditions.
Return value
\Drupal\webform\WebformSubmissionInterface|null The webform's last submission.
Overrides WebformSubmissionStorageInterface::getLastSubmission
File
- src/
WebformSubmissionStorage.php, line 478
Class
- WebformSubmissionStorage
- Defines the webform submission storage.
Namespace
Drupal\webformCode
public function getLastSubmission(WebformInterface $webform, EntityInterface $source_entity = NULL, AccountInterface $account = NULL, array $options = []) {
return $this
->getTerminusSubmission($webform, $source_entity, $account, $options, 'last');
}