You are here

protected function WebformSubmissionListBuilder::getTotal in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformSubmissionListBuilder.php \Drupal\webform\WebformSubmissionListBuilder::getTotal()

Get the total number of submissions.

Parameters

string $keys: (optional) Search key.

string $state: (optional) Submission state.

string $source_entity: (optional) Source entity (type:id).

Return value

int The total number of submissions.

2 calls to WebformSubmissionListBuilder::getTotal()
WebformSubmissionListBuilder::buildFilterForm in src/WebformSubmissionListBuilder.php
Build the filter form.
WebformSubmissionListBuilder::__construct in src/WebformSubmissionListBuilder.php
Constructs a new WebformSubmissionListBuilder object.

File

src/WebformSubmissionListBuilder.php, line 1347

Class

WebformSubmissionListBuilder
Provides a list controller for webform submission entity.

Namespace

Drupal\webform

Code

protected function getTotal($keys = '', $state = '', $source_entity = '') {
  return $this
    ->getQuery($keys, $state, $source_entity)
    ->count()
    ->execute();
}