public function TitleCallback::example in Drupal 9
Same name and namespace in other branches
- 8 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 143 - Contains \Drupal\Tests\Core\Controller\TitleResolverTest.
Class
- TitleCallback
- Provides an example title callback for the testDynamicTitle method above.
Namespace
Drupal\Tests\Core\ControllerCode
public function example($value) {
return 'test ' . $value;
}