You are here

public function YamlFormSubmissionStorage::getNextSubmission in YAML Form 8

Get a form submission's next sibling.

Parameters

\Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission: A form submission.

\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 submission's next sibling.

Overrides YamlFormSubmissionStorageInterface::getNextSubmission

File

src/YamlFormSubmissionStorage.php, line 191

Class

YamlFormSubmissionStorage
Defines the form submission storage.

Namespace

Drupal\yamlform

Code

public function getNextSubmission(YamlFormSubmissionInterface $yamlform_submission, EntityInterface $source_entity = NULL, AccountInterface $account = NULL) {
  return $this
    ->getSiblingSubmission($yamlform_submission, $source_entity, $account, 'next');
}