FactoryInterface
Interface defining a factory which can create Document objects
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
createDocument
Creates a new Document object for the requested format.
createDocument( type = 'html', mixed||string|int attributes = []) : \Joomla\CMS\Document\Document
since |
4.0.0 |
---|
Arguments
- type
string
The document type to instantiate- attributes
array<string|int, mixed>
Array of attributes
Response
createRenderer
Creates a new renderer object.
createRenderer(\Joomla\CMS\Document\Document document, type, docType = '') : \Joomla\CMS\Document\RendererInterface
since |
4.0.0 |
---|
Arguments
- document
Document
The Document instance to attach to the renderer- type
string
The renderer type to instantiate- docType
string
The document type the renderer is part of