public function clearForm(BaseForm $form)
    {
        $formErrorInformation = $this->getSession()->getFormErrorInformation();

        $formClass = \get_class($form) . ':' . $form->getType();

        if (isset($formErrorInformation[$formClass])) {
            unset($formErrorInformation[$formClass]);
            $this->getSession()->setFormErrorInformation($formErrorInformation);
        }

        return $this;
    }
public function clearForm(BaseForm $form)
    {
        $formErrorInformation = $this->getSession()->getFormErrorInformation();

        $formClass = \get_class($form) . ':' . $form->getType();

        if (isset($formErrorInformation[$formClass])) {
            unset($formErrorInformation[$formClass]);
            $this->getSession()->setFormErrorInformation($formErrorInformation);
        }

        return $this;
    }
public function clearForm ( BaseForm $ form ) { $ formErrorInformation = $ this -> getSession ( ) -> getFormErrorInformation ( ) ; $ formClass = \ get_class ( $ form ) . ':' . $ form -> getType ( ) ; if ( isset ( $ formErrorInformation [ $ formClass ] ) ) { unset ( $ formErrorInformation [ $ formClass ] ) ; $ this -> getSession ( ) -> setFormErrorInformation ( $ formErrorInformation ) ; } return $ this ; }
Remove form from the saved form error information.

@param BaseForm $form
@return $this
Remove form from the saved form error information .