public function WebformSubmissionExporter::requiresBatch in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformSubmissionExporter.php \Drupal\webform\WebformSubmissionExporter::requiresBatch()
Determine if webform submissions must be exported using batch processing.
Return value
bool TRUE if webform submissions must be exported using batch processing.
Overrides WebformSubmissionExporterInterface::requiresBatch
File
- src/
WebformSubmissionExporter.php, line 1011
Class
- WebformSubmissionExporter
- Webform submission exporter.
Namespace
Drupal\webformCode
public function requiresBatch() {
// Get the unfiltered total number of submissions for the webform and
// source entity.
$total = $this->entityStorage
->getTotal($this
->getWebform(), $this
->getSourceEntity());
return $total > $this
->getBatchLimit() ? TRUE : FALSE;
}