function test_basetheme_views_post_render in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/themes/test_basetheme/test_basetheme.theme \test_basetheme_views_post_render()
Implements hook_views_post_render().
1 string reference to 'test_basetheme_views_post_render'
- ViewsThemeIntegrationTest::testThemedViewPage in core/
modules/ views/ src/ Tests/ ViewsThemeIntegrationTest.php - Tests for exceptions and successful execution of hook_views_pre_render() and hook_views_post_render() in theme and subtheme.
File
- core/
modules/ system/ tests/ themes/ test_basetheme/ test_basetheme.theme, line 21 - Add hooks for tests to use.
Code
function test_basetheme_views_post_render(ViewExecutable $view, &$output, CachePluginBase $cache) {
// We append the function name to the title for test to check for.
$view
->setTitle($view
->getTitle() . ":" . __FUNCTION__);
}