class TitleCallback
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleCallback
- 10 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
- 8.9.x 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 285
Namespace
Drupal\Tests\Core\ControllerView source
class TitleCallback {
/**
* Gets the example value.
*
* @param \Stringable|string|array|null $value
* The dynamic value.
*
* @return string|array|null
* Returns the example value.
*/
public function example(\Stringable|string|array|null $value) : \Stringable|string|array|null {
return $value;
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| TitleCallback::example | public | function | Gets the example value. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.