function BatchTestDefinitions::batch9

Same name and namespace in other branches
  1. main core/modules/system/tests/modules/batch_test/src/BatchTestDefinitions.php \Drupal\batch_test\BatchTestDefinitions::batch9()

Batch 9: Displays URLs.

File

core/modules/system/tests/modules/batch_test/src/BatchTestDefinitions.php, line 194

Class

BatchTestDefinitions
Batch definitions for testing batches.

Namespace

Drupal\batch_test

Code

public function batch9() : array {
  $batch_builder = (new BatchBuilder())->addOperation(BatchTestCallbacks::class . ':callback9')
    ->setFinishCallback(BatchTestCallbacks::class . ':finished9');
  return $batch_builder->toArray();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.