class ChildWithDeprecatedMethod

Fixture: cross-module child with deprecated method.

Hierarchy

Expanded class hierarchy of ChildWithDeprecatedMethod

File

core/tests/Drupal/Tests/TestTools/ErrorHandler/DrupalDebugClassLoaderTest.php, line 152

Namespace

Drupal\Tests\TestTools\ErrorHandler
View source
class ChildWithDeprecatedMethod extends ParentWithReturn {
  
  /**
   * @deprecated in drupal:11.0.0 and is removed from drupal:12.0.0.
   *   Use something else instead.
   * @see https://www.drupal.org/node/9999999
   */
  public function testMethod() {
    return 'overridden';
  }

}

Members

Title Sort descending Deprecated Modifiers Object type Summary Overriden Title
ChildWithDeprecatedMethod::testMethod Deprecated public function Overrides ParentWithReturn::testMethod
ParentWithReturn::anotherMethod public function

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