function BatchTestController::testRedirect
Same name in other branches
- 9 core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php \Drupal\batch_test\Controller\BatchTestController::testRedirect()
- 10 core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php \Drupal\batch_test\Controller\BatchTestController::testRedirect()
- 11.x core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php \Drupal\batch_test\Controller\BatchTestController::testRedirect()
Redirects successfully.
Return value
array Render array containing success message.
1 string reference to 'BatchTestController::testRedirect'
- batch_test.routing.yml in core/
modules/ system/ tests/ modules/ batch_test/ batch_test.routing.yml - core/modules/system/tests/modules/batch_test/batch_test.routing.yml
File
-
core/
modules/ system/ tests/ modules/ batch_test/ src/ Controller/ BatchTestController.php, line 18
Class
- BatchTestController
- Controller routines for batch tests.
Namespace
Drupal\batch_test\ControllerCode
public function testRedirect() {
return [
'success' => [
'#markup' => 'Redirection successful.',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.