function 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 19
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.