function CallableResolverTest::staticMethod

Same name in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php \Drupal\Tests\Core\Utility\CallableResolverTest::staticMethod()

A test static method that returns "foo".

Parameters

string $suffix: A suffix to append.

Return value

string A test string.

1 call to CallableResolverTest::staticMethod()
CallableResolverTest::testCallbackResolver in core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php
@covers ::getCallableFromDefinition @group legacy

File

core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php, line 186

Class

CallableResolverTest
@coversDefaultClass \Drupal\Core\Utility\CallableResolver @group Utility

Namespace

Drupal\Tests\Core\Utility

Code

public static function staticMethod($suffix) {
    return __METHOD__ . '+' . $suffix;
}

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