You are here

public function RenderStack::decreaseRecursion in Render cache 7.2

Decrements the recursion level by 1.

Return value

array Returns the current recursion storage with the assets.

Overrides RenderStackInterface::decreaseRecursion

2 calls to RenderStack::decreaseRecursion()
RenderStack::processPostRenderCache in src/Cache/RenderStack.php
RenderStack::render in src/Cache/RenderStack.php

File

src/Cache/RenderStack.php, line 86
Contains \Drupal\render_cache\Cache\RenderStack

Class

RenderStack
Defines the RenderStack service.

Namespace

Drupal\render_cache\Cache

Code

public function decreaseRecursion() {
  $storage = $this
    ->getRecursionStorage();
  unset($this->recursionStorage[$this->recursionLevel]);
  $this->recursionLevel -= 1;
  return $storage;
}