You are here

protected function RenderCachePlaceholderTest::processPostRenderCache in Render cache 7.2

5 calls to RenderCachePlaceholderTest::processPostRenderCache()
RenderCachePlaceholderTest::test_postRenderCacheCallback in tests/src/Cache/RenderCachePlaceholderTest.php
@depends test_getPlaceholder @covers ::postRenderCacheCallback() @covers ::loadPlaceholderFunctionArgs()
RenderCachePlaceholderTest::test_postRenderCacheCallback_noPlaceholder in tests/src/Cache/RenderCachePlaceholderTest.php
@depends test_getPlaceholder @covers ::postRenderCacheCallback()
RenderCachePlaceholderTest::test_postRenderCacheCallback_wrongFunction in tests/src/Cache/RenderCachePlaceholderTest.php
@depends test_getPlaceholder @covers ::postRenderCacheMultiCallback()
RenderCachePlaceholderTest::test_postRenderCacheMultiCallback in tests/src/Cache/RenderCachePlaceholderTest.php
@depends test_getPlaceholder_multi @covers ::postRenderCacheMultiCallback()
RenderCachePlaceholderTest::test_postRenderCacheMultiCallback_noPlaceholder in tests/src/Cache/RenderCachePlaceholderTest.php
@depends test_getPlaceholder_multi @covers ::postRenderCacheMultiCallback()

File

tests/src/Cache/RenderCachePlaceholderTest.php, line 247
Contains \Drupal\render_cache\Tests\Cache\RenderCachePlaceholderTest

Class

RenderCachePlaceholderTest
@coversDefaultClass \Drupal\render_cache\Cache\RenderCachePlaceholder @group cache

Namespace

Drupal\render_cache\Tests\Cache

Code

protected function processPostRenderCache(&$elements) {
  foreach (array_keys($elements['#post_render_cache']) as $callback) {
    foreach ($elements['#post_render_cache'][$callback] as $context) {
      $elements = call_user_func_array($callback, array(
        $elements,
        $context,
      ));
    }
  }
}