function CallableResolverTest::method

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php \Drupal\Tests\Core\Utility\CallableResolverTest::method()

A test method that returns "foo".

Parameters

string $suffix: A suffix to append.

Return value

string A test string.

Throws

\Exception Throws an exception when called statically.

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

File

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

Class

CallableResolverTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Utility%21CallableResolver.php/class/CallableResolver/11.x" title="Resolves PHP callables." class="local">\Drupal\Core\Utility\CallableResolver</a> @group Utility

Namespace

Drupal\Tests\Core\Utility

Code

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

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