src/Forms/Form.php
public function restoreFormState()
    {
        // Restore messages
        $result = $this->getSessionValidationResult();
        if (isset($result)) {
            $this->loadMessagesFrom($result);
        }

        // load data in from previous submission upon error
        $data = $this->getSessionData();
        if (isset($data)) {
            $this->loadDataFrom($data, self::MERGE_AS_INTERNAL_VALUE);
        }
        return $this;
    }
public function restoreFormState()
    {
        // Restore messages
        $result = $this->getSessionValidationResult();
        if (isset($result)) {
            $this->loadMessagesFrom($result);
        }

        // load data in from previous submission upon error
        $data = $this->getSessionData();
        if (isset($data)) {
            $this->loadDataFrom($data, self::MERGE_AS_INTERNAL_VALUE);
        }
        return $this;
    }
public function restoreFormState ( ) { // Restore messages $ result = $ this -> getSessionValidationResult ( ) ; if ( isset ( $ result ) ) { $ this -> loadMessagesFrom ( $ result ) ; } // load data in from previous submission upon error $ data = $ this -> getSessionData ( ) ; if ( isset ( $ data ) ) { $ this -> loadDataFrom ( $ data , self :: MERGE_AS_INTERNAL_VALUE ) ; } return $ this ; }
Load form state from session state

@return $this
Load form state from session state