You are here

public function WebformSubmissionStorageInterface::getPreviousSubmission in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformSubmissionStorageInterface.php \Drupal\webform\WebformSubmissionStorageInterface::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.

1 method overrides WebformSubmissionStorageInterface::getPreviousSubmission()
WebformSubmissionStorage::getPreviousSubmission in src/WebformSubmissionStorage.php
Get a webform submission's previous sibling.

File

src/WebformSubmissionStorageInterface.php, line 295

Class

WebformSubmissionStorageInterface
Defines an interface for webform submission classes.

Namespace

Drupal\webform

Code

public function getPreviousSubmission(WebformSubmissionInterface $webform_submission, EntityInterface $source_entity = NULL, AccountInterface $account = NULL, array $options = []);