protected function parseCurrentContent()
    {
        $content = $this->getConfig("content");

        if (is_array($content) || is_object($content)) {
            return json_encode($content);
        }

        return "" . $content;
    }
protected function parseCurrentContent()
    {
        $content = $this->getConfig("content");

        if (is_array($content) || is_object($content)) {
            return json_encode($content);
        }

        return "" . $content;
    }
protected function parseCurrentContent ( ) { $ content = $ this -> getConfig ( "content" ) ; if ( is_array ( $ content ) || is_object ( $ content ) ) { return json_encode ( $ content ) ; } return "" . $ content ; }
Takes the current value of the content option and ensure that it is
correctly formatted for output. If the content is an array or an object, the value.
is encoded to a json string. Otherwise, the content simply cast into string.
@return string The content of the view
Takes the current value of the content option and ensure that it is correctly formatted for output . If the content is an array or an object the value . is encoded to a json string . Otherwise the content simply cast into string .