Security update to Drupal 8.4.6
[yaffs-website] / web / core / modules / system / tests / themes / test_basetheme / test_basetheme.theme
1 <?php
2
3 /**
4  * @file
5  * Add hooks for tests to use.
6  */
7
8 use Drupal\views\Plugin\views\cache\CachePluginBase;
9 use Drupal\views\ViewExecutable;
10
11 /**
12  * Implements hook_views_pre_render().
13  */
14 function test_basetheme_views_pre_render(ViewExecutable $view) {
15   // We append the function name to the title for test to check for.
16   $view->setTitle($view->getTitle() . ":" . __FUNCTION__);
17 }
18
19 /**
20  * Implements hook_views_post_render().
21  */
22 function test_basetheme_views_post_render(ViewExecutable $view, &$output, CachePluginBase $cache) {
23   // We append the function name to the title for test to check for.
24   $view->setTitle($view->getTitle() . ":" . __FUNCTION__);
25 }
26
27 /**
28  * Implements hook_preprocess_HOOK() for theme_test_template_test templates.
29  */
30 function test_basetheme_preprocess_theme_test_template_test(&$variables) {
31 }
32
33 /**
34  * Implements hook_preprocess_HOOK() for theme_test_function_suggestions theme functions.
35  */
36 function test_basetheme_preprocess_theme_test_function_suggestions(&$variables) {
37 }