You are here

public function WebformSubmissionExporter::isBatch in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 1186

Class

WebformSubmissionExporter
Webform submission exporter.

Namespace

Drupal\webform

Code

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