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

        if ($page instanceof BusinessPage) {
            $form = $this->createForm($this->getBusinessPageType(), $page);
        }

        return $form;
    }
protected function createSettingsForm(BasePage $page)
    {
        $form = $this->createForm($this->getPageSettingsType(), $page);

        if ($page instanceof BusinessPage) {
            $form = $this->createForm($this->getBusinessPageType(), $page);
        }

        return $form;
    }
protected function createSettingsForm ( BasePage $ page ) { $ form = $ this -> createForm ( $ this -> getPageSettingsType ( ) , $ page ) ; if ( $ page instanceof BusinessPage ) { $ form = $ this -> createForm ( $ this -> getBusinessPageType ( ) , $ page ) ; } return $ form ; }
Create Settings form according to Page type.

@param BasePage $page

@return Form
Create Settings form according to Page type .