function TestBaseThemeHooks::viewsPreRender
Same name and namespace in other branches
- 11.x core/modules/system/tests/themes/test_base_theme/src/Hook/TestBaseThemeHooks.php \Drupal\test_base_theme\Hook\TestBaseThemeHooks::viewsPreRender()
Implements hook_views_pre_render().
Attributes
#[Hook('views_pre_render')]
File
-
core/
modules/ system/ tests/ themes/ test_base_theme/ src/ Hook/ TestBaseThemeHooks.php, line 19
Class
- TestBaseThemeHooks
- Hook implementations for test_base_theme.
Namespace
Drupal\test_base_theme\HookCode
public function viewsPreRender(ViewExecutable $view) : void {
// We append the function name to the title for test to check for.
$view->setTitle($view->getTitle() . ":" . 'test_base_theme_views_pre_render');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.