You are here

class DeprecatedController in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php \Drupal\deprecation_test\DeprecatedController

Defines a controller that calls a deprecated method.

Hierarchy

Expanded class hierarchy of DeprecatedController

File

core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php, line 8

Namespace

Drupal\deprecation_test
View source
class DeprecatedController {

  /**
   * Controller callback.
   *
   * @return array
   *   Render array.
   */
  public function deprecatedMethod() {
    return [
      '#markup' => deprecation_test_function(),
    ];
  }

}

Members