function ChildWithDeprecatedMethod::testMethod

Return value

string A test string.

Overrides ParentWithReturn::testMethod

Deprecated

in drupal:11.0.0 and is removed from drupal:12.0.0. Use something else instead.

See also

https://www.drupal.org/node/9999999

File

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

Class

ChildWithDeprecatedMethod
Fixture: cross-module child with deprecated method.

Namespace

Drupal\Tests\TestTools\ErrorHandler

Code

public function testMethod() {
  return 'overridden';
}

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