main/core/Controller/HomeController.php
public function changeTemplateFormAction(Type $type)
    {
        $form = $this->formFactory->create(
            HomeTemplateType::class,
            $type,
            ['dir' => $this->homeService->getTemplatesDirectory()]
        );

        return ['form' => $form->createView(), 'type' => $type];
    }
public function changeTemplateFormAction(Type $type)
    {
        $form = $this->formFactory->create(
            HomeTemplateType::class,
            $type,
            ['dir' => $this->homeService->getTemplatesDirectory()]
        );

        return ['form' => $form->createView(), 'type' => $type];
    }
public function changeTemplateFormAction ( Type $ type ) { $ form = $ this -> formFactory -> create ( HomeTemplateType :: class , $ type , [ 'dir' => $ this -> homeService -> getTemplatesDirectory ( ) ] ) ; return [ 'form' => $ form -> createView ( ) , 'type' => $ type ] ; }
Edit template form.

@Route(
"/type/{type}/change/template/form",
name="claro_content_change_template_form",
options = {"expose" = true}
)
@Secure(roles="ROLE_HOME_MANAGER")
@Template("ClarolineCoreBundle:home:change_template_modal_form.html.twig")

@param Type $type

@return array
Edit template form .