DelayRenderFunction
class DelayRenderFunction extends BaseFunction
DelayRender allows you to force rendered Twig code to the footer of the site. Helpful for javascript.
{% set javascript %}
<script>console.log('hello world');</script>
{% endset %}
{% do delayRender(javascript) %}
Methods
static array
getStack()
Return the remaining items in the render stack if anything exists.
getFunctionName()
No description
array
handle(string $block = 'global', string $val = null)
Delay render handle
Details
in BaseFunction at line 9
__construct()
in BaseFunction at line 18
getFunctionOptions()
in BaseFunction at line 23
getDI()
at line 24
static array
getStack()
Return the remaining items in the render stack if anything exists.
at line 29
getFunctionName()
at line 40
array
handle(string $block = 'global', string $val = null)
Delay render handle