$container
$container : \Thelia\Action\The
validateForm(\Thelia\Form\BaseForm $aBaseForm, string $expectedMethod) : \Symfony\Component\Form\Form
Validate a BaseForm
| \Thelia\Form\BaseForm | $aBaseForm | the form |
| string | $expectedMethod | the expected method, POST or GET, or null for any of them |
is the form contains error, or the method is not the right one
Form the symfony form object
propagateFormError(\Thelia\Form\BaseForm $aBaseForm, string $error_message, \Thelia\Core\Event\ActionEvent $event)
Propagate a form error in the action event
| \Thelia\Form\BaseForm | $aBaseForm | the form |
| string | $error_message | an error message that may be displayed to the customer |
| \Thelia\Core\Event\ActionEvent | $event | the action event |