jlayout_debug($layoutFile, $displayData = null, $basePath = ‘’, $options = null)

Fast debug of JLayout files rendering inside a twig layouts. Proxy of \Joomla\CMS\LayoutHelper::debug().

  1. Parameters
  2. Returns
  3. Examples

Parameters

  • string $layoutFile Dot separated path to the layout file, relative to base path.
  • mixed $displayData [optional] Array Object 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 + debug info

Examples


{#  Debug the joomla.html.treeprefix layout with ['level' => 10] as data #}
{{ jlayout_debug('joomla.html.treeprefix', {'level' : 10}) }}