⇦ Back to FactoryInterface classMethod createRenderer
public \Joomla\CMS\Document\RendererInterface
createRenderer
(\Joomla\CMS\Document\Document $document, string $type, string $docType = '')
Creates a new renderer object.
Parameters
- \Joomla\CMS\Document\Document $document The Document instance to attach to the renderer
- string $type The renderer type to instantiate
- string $docType The document type the renderer is part of
Returns
- \Joomla\CMS\Document\RendererInterface
Since
Method createRenderer - Source code
/**
* Creates a new renderer object.
*
* @param Document $document The Document instance to attach to the renderer
* @param string $type The renderer type to instantiate
* @param string $docType The document type the renderer is part of
*
* @return RendererInterface
*
* @since 4.0.0
*/
public function createRenderer(Document $document, string $type, string $docType = '') : RendererInterface;