Back to ErrorDocument class

Method loadRenderer

public \Joomla\CMS\Document\RendererInterface
loadRenderer
(mixed $type)
Load a renderer
Parameters
  • string $type The renderer type
Returns
  • \Joomla\CMS\Document\RendererInterface
Since
  • 4.0.0
-
  • \RuntimeException
Class: ErrorDocument
Project: Joomla

Method loadRenderer - Source code

/**
 * Load a renderer
 *
 * @param   string  $type  The renderer type
 *
 * @return  RendererInterface
 *
 * @since   4.0.0
 * @throws  \RuntimeException
 */
public function loadRenderer($type)
{
    // Need to force everything to go to the HTML renderers or we duplicate all the things
    return $this->factory->createRenderer($this, $type, 'html');
}