function menu_test_title_callback in Drupal 8
Same name and namespace in other branches
- 7 modules/simpletest/tests/menu_test.module \menu_test_title_callback()
- 9 core/modules/system/tests/modules/menu_test/menu_test.module \menu_test_title_callback()
Title callback: Concatenates the title and case number.
Parameters
string $title: Title string.
int $case_number: (optional) The current case number which it tests (defaults to 3).
Return value
string A string containing the title and case number.
See also
menu_test_menu()
File
- core/
modules/ system/ tests/ modules/ menu_test/ menu_test.module, line 87 - Module that implements various hooks for menu tests.
Code
function menu_test_title_callback($title, $case_number = 3) {
return t($title) . ' - Case ' . $case_number;
}