You are here

public function YamlFormSubmissionStorage::getFirstSubmission in YAML Form 8

Get a form's first 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 first submission.

Overrides YamlFormSubmissionStorageInterface::getFirstSubmission

File

src/YamlFormSubmissionStorage.php, line 170

Class

YamlFormSubmissionStorage
Defines the form submission storage.

Namespace

Drupal\yamlform

Code

public function getFirstSubmission(YamlFormInterface $yamlform, EntityInterface $source_entity = NULL, AccountInterface $account = NULL) {
  return $this
    ->getTerminusSubmission($yamlform, $source_entity, $account, 'ASC');
}