You are here

public function WebformSubmissionStorageInterface::getTotal in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformSubmissionStorageInterface.php \Drupal\webform\WebformSubmissionStorageInterface::getTotal()

Get the total number of submissions.

Parameters

\Drupal\webform\WebformInterface|null $webform: (optional) A webform. If set the total number of submissions for the Webform will be returned.

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

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

array $options: Options/conditions include:

  • in_draft (boolean): NULL will return all saved submissions and drafts. Defaults to FALSE.
  • interval (int): Limit total within an seconds interval.

Return value

int Total number of submissions.

1 method overrides WebformSubmissionStorageInterface::getTotal()
WebformSubmissionStorage::getTotal in src/WebformSubmissionStorage.php
Get the total number of submissions.

File

src/WebformSubmissionStorageInterface.php, line 146

Class

WebformSubmissionStorageInterface
Defines an interface for webform submission classes.

Namespace

Drupal\webform

Code

public function getTotal(WebformInterface $webform = NULL, EntityInterface $source_entity = NULL, AccountInterface $account = NULL, array $options = []);