You are here

public function WebformSubmissionExporter::getTotal in Webform 8.5

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

Total number of submissions to be exported.

Return value

int The total number of submissions to be exported.

Overrides WebformSubmissionExporterInterface::getTotal

1 call to WebformSubmissionExporter::getTotal()
WebformSubmissionExporter::isBatch in src/WebformSubmissionExporter.php
Determine if export needs to use batch processing.

File

src/WebformSubmissionExporter.php, line 997

Class

WebformSubmissionExporter
Webform submission exporter.

Namespace

Drupal\webform

Code

public function getTotal() {
  return $this
    ->getQuery()
    ->count()
    ->execute();
}