public function blockContentToHtml($content, array $extraOptions = null)
    {
        $result = $content;
        if (is_array($content)) {
            $result = "";
            if (\array_key_exists('RenderView', $content)) {
                if (null !== $extraOptions) {
                    $content['RenderView']['options'] = array_merge($content['RenderView']['options'], $extraOptions);
                }
                $viewsRenderer = $this->container->get('red_kite_cms.view_renderer');
                $result = $viewsRenderer->render($content['RenderView']);
            }
        }

        return $result;
    }
public function blockContentToHtml($content, array $extraOptions = null)
    {
        $result = $content;
        if (is_array($content)) {
            $result = "";
            if (\array_key_exists('RenderView', $content)) {
                if (null !== $extraOptions) {
                    $content['RenderView']['options'] = array_merge($content['RenderView']['options'], $extraOptions);
                }
                $viewsRenderer = $this->container->get('red_kite_cms.view_renderer');
                $result = $viewsRenderer->render($content['RenderView']);
            }
        }

        return $result;
    }
public function blockContentToHtml ( $ content , array $ extraOptions = null ) { $ result = $ content ; if ( is_array ( $ content ) ) { $ result = "" ; if ( \ array_key_exists ( 'RenderView' , $ content ) ) { if ( null !== $ extraOptions ) { $ content [ 'RenderView' ] [ 'options' ] = array_merge ( $ content [ 'RenderView' ] [ 'options' ] , $ extraOptions ) ; } $ viewsRenderer = $ this -> container -> get ( 'red_kite_cms.view_renderer' ) ; $ result = $ viewsRenderer -> render ( $ content [ 'RenderView' ] ) ; } } return $ result ; }
Converts a block's content to html

@param  string $content
@param  array  $extraOptions
@return string
Converts a block s content to html