You are here

public function YamlFormSubmissionExporter::getTotal in YAML Form 8

Total number of submissions to be exported.

Return value

int The total number of submissions to be exported.

Overrides YamlFormSubmissionExporterInterface::getTotal

2 calls to YamlFormSubmissionExporter::getTotal()
YamlFormSubmissionExporter::isBatch in src/YamlFormSubmissionExporter.php
Determine if export needs to use batch processing.
YamlFormSubmissionExporter::requiresBatch in src/YamlFormSubmissionExporter.php
Determine if form submissions must be exported using batch processing.

File

src/YamlFormSubmissionExporter.php, line 819

Class

YamlFormSubmissionExporter
Form submission exporter.

Namespace

Drupal\yamlform

Code

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