class TitleCallback in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleCallback
- 9 core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleCallback
Provides an example title callback for the testDynamicTitle method above.
Hierarchy
- class \Drupal\Tests\Core\Controller\TitleCallback
Expanded class hierarchy of TitleCallback
File
- core/
tests/ Drupal/ Tests/ Core/ Controller/ TitleResolverTest.php, line 150 - Contains \Drupal\Tests\Core\Controller\TitleResolverTest.
Namespace
Drupal\Tests\Core\ControllerView source
class TitleCallback {
/**
* Gets the example string.
*
* @param string $value
* The dynamic value.
*
* @return string
* Returns the example string.
*/
public function example($value) {
return 'test ' . $value;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TitleCallback:: |
public | function | Gets the example string. |