You are here

public function DeprecatedController::deprecatedMethod in Drupal 8

Same name and namespace in other branches
  1. 9 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_test

Code

public function deprecatedMethod() {
  return [
    '#markup' => deprecation_test_function(),
  ];
}