public function placeholderFunction($name, $default = null)
    {
        if (($result = Block::get($name)) === null) {
            return null;
        }

        $result = str_replace('<!-- X_OCTOBER_DEFAULT_BLOCK_CONTENT -->', trim($default), $result);
        return $result;
    }
public function placeholderFunction($name, $default = null)
    {
        if (($result = Block::get($name)) === null) {
            return null;
        }

        $result = str_replace('<!-- X_OCTOBER_DEFAULT_BLOCK_CONTENT -->', trim($default), $result);
        return $result;
    }
public function placeholderFunction ( $ name , $ default = null ) { if ( ( $ result = Block :: get ( $ name ) ) === null ) { return null ; } $ result = str_replace ( '<!-- X_OCTOBER_DEFAULT_BLOCK_CONTENT -->' , trim ( $ default ) , $ result ) ; return $ result ; }
Renders a placeholder content, without removing the block,
must be called before the placeholder tag itself
@return string Returns the placeholder contents.
Renders a placeholder content without removing the block must be called before the placeholder tag itself