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

__construct()

No description

getFunctionOptions()

No description

getDI()

No description

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.

Return Value

array

at line 29
getFunctionName()

at line 40
array handle(string $block = 'global', string $val = null)

Delay render handle

Parameters

string $block block for grouping
string $val rendered Twig

Return Value

array of existing partials