Frontend\Core\Engine\TwigTemplate::getContent PHP Méthode

getContent() public méthode

Fetch the parsed content from this template.
public getContent ( string $template ) : string
$template string The location of the template file, used to display this template.
Résultat string The actual parsed content after executing this template.
    public function getContent($template)
    {
        $template = $this->getPath($template);
        $content = $this->render($template, $this->variables);
        $this->variables = array();
        return $content;
    }