protected function renderTwig($content, $data = [])
    {
        if ($this->isTwigStarted) {
            return Twig::parse($content, $data);
        }

        $this->startTwig();

        $result = Twig::parse($content, $data);

        $this->stopTwig();

        return $result;
    }
protected function renderTwig($content, $data = [])
    {
        if ($this->isTwigStarted) {
            return Twig::parse($content, $data);
        }

        $this->startTwig();

        $result = Twig::parse($content, $data);

        $this->stopTwig();

        return $result;
    }
protected function renderTwig ( $ content , $ data = [ ] ) { if ( $ this -> isTwigStarted ) { return Twig :: parse ( $ content , $ data ) ; } $ this -> startTwig ( ) ; $ result = Twig :: parse ( $ content , $ data ) ; $ this -> stopTwig ( ) ; return $ result ; }
Internal helper for rendering Twig
Internal helper for rendering Twig