DeprecatedController.php in Drupal 10
Same filename and directory in other branches
Namespace
Drupal\deprecation_testFile
core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.phpView source
<?php
namespace Drupal\deprecation_test;
/**
* Defines a controller that calls a deprecated method.
*/
class DeprecatedController {
/**
* Controller callback.
*
* @return array
* Render array.
*/
public function deprecatedMethod() {
return [
'#markup' => deprecation_test_function(),
];
}
}
Classes
Name | Description |
---|---|
DeprecatedController | Defines a controller that calls a deprecated method. |