Back to FormField class

Method getRenderer

protected \Joomla\CMS\Layout\FileLayout
getRenderer
(mixed $layoutId = 'default')
Get the renderer
Parameters
  • string $layoutId Id to load
Returns
  • \Joomla\CMS\Layout\FileLayout
Since
  • 3.5
Class: FormField
Project: Joomla

Method getRenderer - Source code

/**
 * Get the renderer
 *
 * @param   string  $layoutId  Id to load
 *
 * @return  FileLayout
 *
 * @since   3.5
 */
protected function getRenderer($layoutId = 'default')
{
    $renderer = new FileLayout($layoutId);
    $renderer->setDebug($this->isDebugEnabled());
    $layoutPaths = $this->getLayoutPaths();
    if ($layoutPaths) {
        $renderer->setIncludePaths($layoutPaths);
    }
    return $renderer;
}