function TitleCallback::example
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleCallback::example()
- 8.9.x core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleCallback::example()
- 11.x core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleCallback::example()
Gets the example string.
Parameters
string $value: The dynamic value.
Return value
string Returns the example string.
File
-
core/
tests/ Drupal/ Tests/ Core/ Controller/ TitleResolverTest.php, line 170
Class
- TitleCallback
- Provides an example title callback for the testDynamicTitle method above.
Namespace
Drupal\Tests\Core\ControllerCode
public function example($value) {
return 'test ' . $value;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.