You are here

public function PageController::hook_init in Render cache 7.2

Implements delegated hook_init().

Overrides PageControllerInterface::hook_init

File

modules/controller/render_cache_page/src/RenderCache/Controller/PageController.php, line 21
Contains \Drupal\render_cache_page\RenderCache\Controller\PageController

Class

PageController
PageController - Provides render caching for page objects.

Namespace

Drupal\render_cache_page\RenderCache\Controller

Code

public function hook_init() {

  // We need to increase the recursion level before entering here to avoid
  // early rendering of #post_render_cache data.
  $this->renderStack
    ->increaseRecursion();
}