Bundle/PageBundle/Controller/BasePageController.php
protected function settingsAction(Request $request, BasePage $page)
    {
        $form = $this->createSettingsForm($page);

        return  [
            'success' => true,
            'html'    => $this->get('templating')->render(
                $this->getBaseTemplatePath().':settings.html.twig',
                [
                    'page'               => $page,
                    'form'               => $form->createView(),
                    'businessProperties' => $this->getBusinessProperties($page),
                ]
            ),
        ];
    }
protected function settingsAction(Request $request, BasePage $page)
    {
        $form = $this->createSettingsForm($page);

        return  [
            'success' => true,
            'html'    => $this->get('templating')->render(
                $this->getBaseTemplatePath().':settings.html.twig',
                [
                    'page'               => $page,
                    'form'               => $form->createView(),
                    'businessProperties' => $this->getBusinessProperties($page),
                ]
            ),
        ];
    }
protected function settingsAction ( Request $ request , BasePage $ page ) { $ form = $ this -> createSettingsForm ( $ page ) ; return [ 'success' => true , 'html' => $ this -> get ( 'templating' ) -> render ( $ this -> getBaseTemplatePath ( ) . ':settings.html.twig' , [ 'page' => $ page , 'form' => $ form -> createView ( ) , 'businessProperties' => $ this -> getBusinessProperties ( $ page ) , ] ) , ] ; }
Display a form to edit Page settings.
Route is defined in inherited controllers.

@param Request  $request
@param BasePage $page

@return array
Display a form to edit Page settings . Route is defined in inherited controllers .