DeprecatedController.php

Same filename and directory in other branches
  1. 11.x core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php
  2. 10 core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php
  3. 9 core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php
  4. 8.9.x core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php

Namespace

Drupal\deprecation_test

File

core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php

View source
<?php

declare (strict_types=1);
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

Title Deprecated Summary
DeprecatedController Defines a controller that calls a deprecated method.

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