framework/RedKiteCms/Rendering/Controller/PageCollection/ShowPageCollectionController.php
public function show(array $options)
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $this->options = $resolver->resolve($options);

        $pagesParser = $this->options["pages_collection_parser"];
        $pages = $pagesParser
            ->contributor($this->options["username"])
            ->parse()
            ->pages()
        ;

        $this->options["template_assets"]->boot('dashboard');
        $templates = $this->options["theme"]->templates();
        $formFactory = $this->options['form_factory'];
        $form = $formFactory->create(new PageType(array_combine($templates, $templates)));
        $pageForm = $form->createView();
        $form = $formFactory->create(new SeoType());
        $seoForm = $form->createView();

        $template = 'RedKiteCms/Resources/views/Dashboard/pages.html.twig';
        $languages = $this->options["configuration_handler"]->languages();

        return $options["twig"]->render(
            $template,
            array(
                "template_assets_manager" => $this->options["template_assets"],
                "pages" => rawurlencode(json_encode($pages)),
                "pageForm" => $pageForm,
                "seoForm" => $seoForm,
                "version" => ConfigurationHandler::getVersion(),
                "home_template" => $this->options["theme"]->homepageTemplate(),
                "languages" => $languages,
            )
        );
    }
public function show(array $options)
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $this->options = $resolver->resolve($options);

        $pagesParser = $this->options["pages_collection_parser"];
        $pages = $pagesParser
            ->contributor($this->options["username"])
            ->parse()
            ->pages()
        ;

        $this->options["template_assets"]->boot('dashboard');
        $templates = $this->options["theme"]->templates();
        $formFactory = $this->options['form_factory'];
        $form = $formFactory->create(new PageType(array_combine($templates, $templates)));
        $pageForm = $form->createView();
        $form = $formFactory->create(new SeoType());
        $seoForm = $form->createView();

        $template = 'RedKiteCms/Resources/views/Dashboard/pages.html.twig';
        $languages = $this->options["configuration_handler"]->languages();

        return $options["twig"]->render(
            $template,
            array(
                "template_assets_manager" => $this->options["template_assets"],
                "pages" => rawurlencode(json_encode($pages)),
                "pageForm" => $pageForm,
                "seoForm" => $seoForm,
                "version" => ConfigurationHandler::getVersion(),
                "home_template" => $this->options["theme"]->homepageTemplate(),
                "languages" => $languages,
            )
        );
    }
Implements the action to show the page collection dashboard interface
@param array $options

@return \Symfony\Component\HttpFoundation\Response