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/fixtures/TestTools/drupal_debug_classloader_test_classes.php, line 102

Class

ChildWithDeprecatedMethod
Fixture: cross-module child with deprecated method.

Namespace

Drupal\drupal_debug_test_core

Code

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

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