function 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 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_subtheme/test_subtheme.theme, line 14

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__);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.