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;
    }