5 * Add hooks for tests to use.
8 use Drupal\views\Plugin\views\cache\CachePluginBase;
9 use Drupal\views\ViewExecutable;
12 * Implements hook_views_pre_render().
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__);
20 * Implements hook_views_post_render().
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__);
28 * Implements hook_preprocess_HOOK() for theme_test_template_test templates.
30 function test_basetheme_preprocess_theme_test_template_test(&$variables) {
34 * Implements hook_preprocess_HOOK() for theme_test_function_suggestions theme functions.
36 function test_basetheme_preprocess_theme_test_function_suggestions(&$variables) {