class DeprecatedController in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php \Drupal\deprecation_test\DeprecatedController
Defines a controller that calls a deprecated method.
Hierarchy
- class \Drupal\deprecation_test\DeprecatedController
Expanded class hierarchy of DeprecatedController
File
- core/
modules/ system/ tests/ modules/ deprecation_test/ src/ DeprecatedController.php, line 8
Namespace
Drupal\deprecation_testView source
class DeprecatedController {
/**
* Controller callback.
*
* @return array
* Render array.
*/
public function deprecatedMethod() {
return [
'#markup' => deprecation_test_function(),
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeprecatedController:: |
public | function | Controller callback. |