Goetas\Twital\Template::getMetadata PHP Method

getMetadata() public method

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

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