You are here

DeprecatedController.php in Drupal 9

File

core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php
View 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

Namesort descending Description
DeprecatedController Defines a controller that calls a deprecated method.