You are here

public function BatchTestController::testRedirect in Drupal 8

Same name and namespace in other branches
  1. 9 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\Controller

Code

public function testRedirect() {
  return [
    'success' => [
      '#markup' => 'Redirection successful.',
    ],
  ];
}