You are here

function batch_set in Flysystem 3.x

Same name and namespace in other branches
  1. 2.0.x tests/src/Unit/Form/ConfigFormTest.php \Drupal\flysystem\Form\batch_set()
  2. 3.0.x tests/src/Unit/Form/ConfigFormTest.php \Drupal\flysystem\Form\batch_set()
2 calls to batch_set()
ConfigForm::submitForm in src/Form/ConfigForm.php
Form submission handler.
ConfigFormTest::testSubmitForm in tests/src/Unit/Form/ConfigFormTest.php
@covers ::submitForm @covers ::getFileList

File

tests/src/Unit/Form/ConfigFormTest.php, line 268

Namespace

Drupal\Tests\flysystem\Unit\Form

Code

function batch_set($batch = NULL) {
  static $last_batch;
  if (isset($batch)) {
    $last_batch = $batch;
  }
  return $last_batch;
}