You are here

constant RenderCache::RENDER_CACHE_STRATEGY_LATE_RENDER in Render cache 7.2

Indicates that the item should not be rendered and it should be cached via drupal_render() and drupal_render_cache_set().

This is useful for e.g display suite when you want to change the markup after entity_view(), but before calling drupal_render().

This is most useful in combination with 'render_cache_preserve_properties', because the entries retrieved from cache will only have #markup and #attached keys by default.

1 use of RenderCache::RENDER_CACHE_STRATEGY_LATE_RENDER
RenderStackTest::test_processPostRenderCache_lateStrategy in tests/src/Cache/RenderStackTest.php
@covers ::processPostRenderCache()

File

lib/RenderCache.php, line 45
Contains RenderCache

Class

RenderCache
Static Service Container wrapper wrapping Drupal class.

Code

const RENDER_CACHE_STRATEGY_LATE_RENDER = 2;