You are here

public function WebformSubmissionExportImportImporter::requiresBatch in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_submission_export_import/src/WebformSubmissionExportImportImporter.php \Drupal\webform_submission_export_import\WebformSubmissionExportImportImporter::requiresBatch()

Determine if webform submissions must be imported using batch processing.

Return value

bool TRUE if webform submissions must be imported using batch processing.

Overrides WebformSubmissionExportImportImporterInterface::requiresBatch

File

modules/webform_submission_export_import/src/WebformSubmissionExportImportImporter.php, line 1100

Class

WebformSubmissionExportImportImporter
Webform submission export importer.

Namespace

Drupal\webform_submission_export_import

Code

public function requiresBatch() {
  return $this
    ->getTotal() > $this
    ->getBatchLimit() ? TRUE : FALSE;
}