Goetas\Twital\Template::getDocument PHP Méthode

getDocument() public méthode

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

Usage Example

Exemple #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