function MethodCallable::__invoke

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

A test __invoke method.

Parameters

string $suffix: A suffix to append.

Return value

string A test string.

File

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

Class

MethodCallable
A test class with callable methods.

Namespace

Drupal\Tests\Core\Utility

Code

public function __invoke($suffix) : string {
  return __METHOD__ . '+' . $suffix;
}

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