You are here

class DeprecatedController 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

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