test_base_theme.theme
File
-
core/
modules/ system/ tests/ themes/ test_base_theme/ test_base_theme.theme
View source
<?php
/**
* @file
* Add hooks for tests to use.
*/
declare (strict_types=1);
use Drupal\views\Plugin\views\cache\CachePluginBase;
use Drupal\views\ViewExecutable;
/**
* Implements hook_views_pre_render().
*/
function test_base_theme_views_pre_render(ViewExecutable $view) : void {
// We append the function name to the title for test to check for.
$view->setTitle($view->getTitle() . ":" . __FUNCTION__);
}
/**
* Implements hook_views_post_render().
*/
function test_base_theme_views_post_render(ViewExecutable $view, &$output, CachePluginBase $cache) : void {
// We append the function name to the title for test to check for.
$view->setTitle($view->getTitle() . ":" . __FUNCTION__);
}
/**
* Implements hook_preprocess_HOOK() for theme_test_template_test templates.
*/
function test_base_theme_preprocess_theme_test_template_test(&$variables) : void {
}
/**
* Implements hook_preprocess_HOOK() for theme_test_function_suggestions theme functions.
*/
function test_base_theme_preprocess_theme_test_function_suggestions(&$variables) : void {
}
Functions
Title | Deprecated | Summary |
---|---|---|
test_base_theme_preprocess_theme_test_function_suggestions | Implements hook_preprocess_HOOK() for theme_test_function_suggestions theme functions. | |
test_base_theme_preprocess_theme_test_template_test | Implements hook_preprocess_HOOK() for theme_test_template_test templates. | |
test_base_theme_views_post_render | Implements hook_views_post_render(). | |
test_base_theme_views_pre_render | Implements hook_views_pre_render(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.