class TitleClosureCallback
Same name and namespace in other branches
- main core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleClosureCallback
Provides an example title closure for the testTitleClosure method above.
Hierarchy
- class \Drupal\Tests\Core\Controller\TitleClosureCallback
Expanded class hierarchy of TitleClosureCallback
File
-
core/
tests/ Drupal/ Tests/ Core/ Controller/ TitleResolverTest.php, line 330
Namespace
Drupal\Tests\Core\ControllerView source
class TitleClosureCallback {
/**
* A controller with a title closure on its route attribute.
*
* @return array
* A render array.
*/
public function example(string $value) : array {
return [];
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| TitleClosureCallback::example | public | function | A controller with a title closure on its route attribute. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.