protected function getContent()
    {
        $widget = (object) $this->widget->execute();
        $widget->cache_key = $this->widget->cacheKeys();

        return trim(preg_replace('/(\s|\r|\n)+</', '<',
            view($this->widget->template(), compact('widget'))->render()
        ));

        // Debug function if App has error:
        // `Cannot end a section without first starting one.`
        return view($this->widget->template(), compact('widget'));
    }
protected function getContent()
    {
        $widget = (object) $this->widget->execute();
        $widget->cache_key = $this->widget->cacheKeys();

        return trim(preg_replace('/(\s|\r|\n)+</', '<',
            view($this->widget->template(), compact('widget'))->render()
        ));

        // Debug function if App has error:
        // `Cannot end a section without first starting one.`
        return view($this->widget->template(), compact('widget'));
    }
protected function getContent ( ) { $ widget = ( object ) $ this -> widget -> execute ( ) ; $ widget -> cache_key = $ this -> widget -> cacheKeys ( ) ; return trim ( preg_replace ( '/(\s|\r|\n)+</' , '<' , view ( $ this -> widget -> template ( ) , compact ( 'widget' ) ) -> render ( ) ) ) ; // Debug function if App has error: // `Cannot end a section without first starting one.` return view ( $ this -> widget -> template ( ) , compact ( 'widget' ) ) ; }
Make call and get widget content.

@return mixed Html compiled string.
Make call and get widget content .