function DeprecatedController::deprecatedMethod
Same name in other branches
- 9 core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php \Drupal\deprecation_test\DeprecatedController::deprecatedMethod()
- 10 core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php \Drupal\deprecation_test\DeprecatedController::deprecatedMethod()
- 11.x 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(),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.