class TestBaseThemeHooks
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
Hook implementations for test_base_theme.
Hierarchy
- class \Drupal\test_base_theme\Hook\TestBaseThemeHooks
Expanded class hierarchy of TestBaseThemeHooks
File
-
core/
modules/ system/ tests/ themes/ test_base_theme/ src/ Hook/ TestBaseThemeHooks.php, line 14
Namespace
Drupal\test_base_theme\HookView source
class TestBaseThemeHooks {
/**
* Implements hook_views_pre_render().
*/
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');
}
/**
* Implements hook_views_post_render().
*/
public function viewsPostRender(ViewExecutable $view, &$output, CachePluginBase $cache) : void {
// We append the function name to the title for test to check for.
$view->setTitle($view->getTitle() . ":" . 'test_base_theme_views_post_render');
}
/**
* Implements hook_preprocess_HOOK() for theme_test_template_test templates.
*/
public function preprocessThemeTestTemplateTest(&$variables) : void {
}
/**
* Implements hook_preprocess_HOOK() for theme_test_function_suggestions theme functions.
*/
public function preprocessThemeTestFunctionSuggestions(&$variables) : void {
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.