You are here

public function TestController::thing2 in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/off_canvas_test/src/Controller/TestController.php \Drupal\off_canvas_test\Controller\TestController::thing2()
  2. 9 core/modules/system/tests/modules/off_canvas_test/src/Controller/TestController.php \Drupal\off_canvas_test\Controller\TestController::thing2()

Thing2.

Return value

string Return Hello string.

1 string reference to 'TestController::thing2'
off_canvas_test.routing.yml in core/modules/system/tests/modules/off_canvas_test/off_canvas_test.routing.yml
core/modules/system/tests/modules/off_canvas_test/off_canvas_test.routing.yml

File

core/modules/system/tests/modules/off_canvas_test/src/Controller/TestController.php, line 32

Class

TestController
Test controller for 2 different responses.

Namespace

Drupal\off_canvas_test\Controller

Code

public function thing2() {
  return [
    '#type' => 'markup',
    '#markup' => 'Thing 2 says hello',
  ];
}