function TestSubthemeHooks::viewsPreRender

Same name and namespace in other branches
  1. main core/modules/system/tests/themes/test_subtheme/src/Hook/TestSubthemeHooks.php \Drupal\test_subtheme\Hook\TestSubthemeHooks::viewsPreRender()

Implements hook_views_pre_render().

Attributes

#[Hook('views_pre_render')]

File

core/modules/system/tests/themes/test_subtheme/src/Hook/TestSubthemeHooks.php, line 21

Class

TestSubthemeHooks
Hook implementations for test_subtheme.

Namespace

Drupal\test_subtheme\Hook

Code

public function viewsPreRender(ViewExecutable $view) : void {
  // We append the function name to the title for test to check for.
  $view->setTitle($view->getTitle() . ":" . 'test_subtheme_views_pre_render');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.