src/BoomCMS/Chunk/BaseChunk.php
public function html()
    {
        if (!$this->hasContent() && !$this->isEditable()) {
            return '';
        }

        $content = $this->hasContent() ? $this->show() : $this->showDefault();

        // If the return data is a View then assign any parameters to it.
        if ($content instanceof View && !empty($this->viewParams)) {
            $content->with($this->viewParams);
        }

        return (string) $content;
    }
public function html()
    {
        if (!$this->hasContent() && !$this->isEditable()) {
            return '';
        }

        $content = $this->hasContent() ? $this->show() : $this->showDefault();

        // If the return data is a View then assign any parameters to it.
        if ($content instanceof View && !empty($this->viewParams)) {
            $content->with($this->viewParams);
        }

        return (string) $content;
    }
public function html ( ) { if ( ! $ this -> hasContent ( ) && ! $ this -> isEditable ( ) ) { return '' ; } $ content = $ this -> hasContent ( ) ? $ this -> show ( ) : $ this -> showDefault ( ) ; // If the return data is a View then assign any parameters to it. if ( $ content instanceof View && ! empty ( $ this -> viewParams ) ) { $ content -> with ( $ this -> viewParams ) ; } return ( string ) $ content ; }
Generate the HTML to display the chunk.

@return string
Generate the HTML to display the chunk .