⇦ Back to FactoryInterface classMethod createDocument
public \Joomla\CMS\Document\Document
createDocument
(string $type = 'html', array $attributes = [])
Creates a new Document object for the requested format.
Parameters
- string $type The document type to instantiate
- array $attributes Array of attributes
Returns
- \Joomla\CMS\Document\Document
Since
Method createDocument - Source code
/**
* Creates a new Document object for the requested format.
*
* @param string $type The document type to instantiate
* @param array $attributes Array of attributes
*
* @return Document
*
* @since 4.0.0
*/
public function createDocument(string $type = 'html', array $attributes = []) : Document;