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

        return ['form' => $form->createView(), 'type' => $type];
    }