class SubmitType extends AbstractType
implements SubmitButtonTypeInterface
{ /**
* @return void
*/
public function buildView(FormView
$view, FormInterface
$form, array
$options) { $view->vars
['clicked'
] =
$form->
isClicked();
if (!
$options['validate'
]) { $view->vars
['attr'
]['formnovalidate'
] = true;
} } /**
* @return void
*/
public function configureOptions(OptionsResolver
$resolver) {