You are here

public function YamlFormSubmissionStorageInterface::getMaxSubmissionId in YAML Form 8

Get the maximum sid.

Parameters

\Drupal\yamlform\YamlFormInterface|null $yamlform: (optional) A form. If set the total number of submissions for the Form will be returned.

\Drupal\Core\Entity\EntityInterface|null $source_entity: (optional) A form submission source entity.

\Drupal\Core\Session\AccountInterface|null $account: (optional) A user account.

Return value

int Total number of submissions.

1 method overrides YamlFormSubmissionStorageInterface::getMaxSubmissionId()
YamlFormSubmissionStorage::getMaxSubmissionId in src/YamlFormSubmissionStorage.php
Get the maximum sid.

File

src/YamlFormSubmissionStorageInterface.php, line 106

Class

YamlFormSubmissionStorageInterface
Defines an interface for form submission classes.

Namespace

Drupal\yamlform

Code

public function getMaxSubmissionId(YamlFormInterface $yamlform = NULL, EntityInterface $source_entity = NULL, AccountInterface $account = NULL);