public function WebformSubmissionStorage::getPreviousSubmission in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformSubmissionStorage.php \Drupal\webform\WebformSubmissionStorage::getPreviousSubmission()
Get a webform submission's previous sibling.
Parameters
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
\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 submission's previous sibling.
Overrides WebformSubmissionStorageInterface::getPreviousSubmission
File
- src/
WebformSubmissionStorage.php, line 485
Class
- WebformSubmissionStorage
- Defines the webform submission storage.
Namespace
Drupal\webformCode
public function getPreviousSubmission(WebformSubmissionInterface $webform_submission, EntityInterface $source_entity = NULL, AccountInterface $account = NULL, array $options = []) {
return $this
->getSiblingSubmission($webform_submission, $source_entity, $account, $options, 'previous');
}