function TestController::thing1
Same name in other branches
- 9 core/modules/system/tests/modules/off_canvas_test/src/Controller/TestController.php \Drupal\off_canvas_test\Controller\TestController::thing1()
- 10 core/modules/system/tests/modules/off_canvas_test/src/Controller/TestController.php \Drupal\off_canvas_test\Controller\TestController::thing1()
- 11.x core/modules/system/tests/modules/off_canvas_test/src/Controller/TestController.php \Drupal\off_canvas_test\Controller\TestController::thing1()
Thing1.
Return value
string Return Hello string.
1 string reference to 'TestController::thing1'
- 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 19
Class
- TestController
- Test controller for 2 different responses.
Namespace
Drupal\off_canvas_test\ControllerCode
public function thing1() {
return [
'#type' => 'markup',
'#markup' => 'Thing 1 says hello',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.