Created
December 2, 2020 22:41
-
-
Save kurozumi/a363f7524d00607cb1220915ae95a8ed to your computer and use it in GitHub Desktop.
アンケートのフォームフロー
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Customize\Form\FormFlow; | |
use Craue\FormFlowBundle\Form\FormFlow; | |
use Customize\Form\CreateQuestionnaire; | |
class QuestionnaireFlow extends FormFlow | |
{ | |
protected function loadStepsConfig() | |
{ | |
return | |
[ | |
[ | |
'label' => trans('性別'), | |
'form_type' => CreateQuestionnaire::class, | |
'form_options' => [ | |
'validation_groups' => ['step1'] | |
] | |
], | |
[ | |
'label' => trans('年代'), | |
'form_type' => CreateQuestionnaire::class, | |
'form_options' => [ | |
'validation_groups' => ['step2'] | |
] | |
], | |
[ | |
'label' => trans('ご意見・ご要望'), | |
'form_type' => CreateQuestionnaire::class, | |
], | |
[ | |
'label' => trans('確認') | |
] | |
]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment