Goetas\Twital\Template::getDocument PHP Method

getDocument() public method

Returns the {DOMDocument} of a template
public getDocument ( ) : DOMDocument
return DOMDocument
    public function getDocument()
    {
        return $this->document;
    }

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  */
 public function dump(Template $template)
 {
     $metadata = $template->getMetadata();
     $dom = $template->getDocument();
     $html5 = $this->getHtml5();
     return $html5->saveHTML($metadata['fragment'] ? $dom->childNodes : $dom);
 }
All Usage Examples Of Goetas\Twital\Template::getDocument