public function ThemeTestController::testSuggestion in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/theme_test/src/ThemeTestController.php \Drupal\theme_test\ThemeTestController::testSuggestion()
Calls a theme hook suggestion.
Return value
string An HTML string containing the themed output.
1 string reference to 'ThemeTestController::testSuggestion'
- theme_test.routing.yml in core/
modules/ system/ tests/ modules/ theme_test/ theme_test.routing.yml - core/modules/system/tests/modules/theme_test/theme_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ theme_test/ src/ ThemeTestController.php, line 78 - Contains \Drupal\theme_test\ThemeTestController.
Class
- ThemeTestController
- Controller routines for theme test routes.
Namespace
Drupal\theme_testCode
public function testSuggestion() {
return [
'#markup' => \Drupal::theme()
->render(array(
'theme_test__suggestion',
'theme_test',
), array()),
];
}