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

getMetadata() public méthode

Return template metadatas.
public getMetadata ( ) : mixed
Résultat mixed
    public function getMetadata()
    {
        return $this->metadata;
    }

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::getMetadata