class DeprecatedController

Same name in other branches
  1. 9 core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php \Drupal\deprecation_test\DeprecatedController
  2. 10 core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php \Drupal\deprecation_test\DeprecatedController
  3. 11.x 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

Title Sort descending Modifiers Object type Summary
DeprecatedController::deprecatedMethod public function Controller callback.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.