public function DeprecatedController::deprecatedMethod in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php \Drupal\deprecation_test\DeprecatedController::deprecatedMethod()
Controller callback.
Return value
array Render array.
1 string reference to 'DeprecatedController::deprecatedMethod'
- deprecation_test.routing.yml in core/
modules/ system/ tests/ modules/ deprecation_test/ deprecation_test.routing.yml - core/modules/system/tests/modules/deprecation_test/deprecation_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ deprecation_test/ src/ DeprecatedController.php, line 16
Class
- DeprecatedController
- Defines a controller that calls a deprecated method.
Namespace
Drupal\deprecation_testCode
public function deprecatedMethod() {
return [
'#markup' => deprecation_test_function(),
];
}