DeprecatedController.php

Same filename and directory in other branches
  1. 9 core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php
  2. 8.9.x core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php
  3. 10 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

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.