Same name and namespace in other branches
- 8.9.x core/modules/system/tests/themes/test_subtheme/test_subtheme.theme \test_subtheme_views_pre_render()
- 9 core/modules/system/tests/themes/test_subtheme/test_subtheme.theme \test_subtheme_views_pre_render()
Implements hook_views_pre_render().
1 string reference to 'test_subtheme_views_pre_render'
- ViewsThemeIntegrationTest::testThemedViewPage in core/
modules/ views/ tests/ src/ Functional/ ViewsThemeIntegrationTest.php - Tests pre_render and post_render hooks in a theme and sub-theme.
File
- core/
modules/ system/ tests/ themes/ test_subtheme/ test_subtheme.theme, line 14 - Add hooks for tests to use.
Code
function test_subtheme_views_pre_render(ViewExecutable $view) {
// We append the function name to the title for test to check for.
$view
->setTitle($view
->getTitle() . ":" . __FUNCTION__);
}