isViewletDelayedByDefault()
Overview
public boolean function isViewletDelayedByDefault(
required string viewlet
, boolean defaultValue = false
)
Accepts a viewlet and returns whether or not it should be 'delayed rendered' by default
Arguments
Name | Type | Required | Description |
---|---|---|---|
viewlet | string | Yes | ID of the viewlet |
defaultValue | boolean | No (default=false) | If the viewlet's handler does not specify any cacheable instruction, use this value |