You are here

public function WebformSubmissionExporter::isBatch in Webform 8.5

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

Determine if export needs to use batch processing.

Return value

bool TRUE if export needs to use batch processing.

Overrides WebformSubmissionExporterInterface::isBatch

File

src/WebformSubmissionExporter.php, line 1086

Class

WebformSubmissionExporter
Webform submission exporter.

Namespace

Drupal\webform

Code

public function isBatch() {
  return $this
    ->isArchive() || $this
    ->getTotal() >= $this
    ->getBatchLimit();
}