jlayout_render($layoutFile, $displayData = null, $basePath = ‘’, $options = null)
Fast rendering of JLayout files inside a twig layouts. Proxy of \Joomla\CMS\LayoutHelper::render()
.
Parameters
string
$layoutFile Dot separated path to the layout file, relative to base path.-
mixed
$displayData [optional] ArrayObject which the data for the layout file. Default: null
string
$basePath [optional] Base path to use when loading layout files.mixed
$options [optional] Custom options to load. Registry or array format
Returns
string
HTML with layout output
Examples
{# Render the joomla.html.treeprefix layout with ['level' => 10] as data #}
{{ jlayout_render('joomla.html.treeprefix', {'level' : 10}) }}