public function form(IForm $form) : InnerFormFieldBuilder
    {
        if ($form instanceof FormObject) {
            return new InnerFormObjectFieldBuilder($this->type(new InnerFormObjectType($form))->value($form));
        }

        return new InnerFormFieldBuilder($this->type(new InnerFormType($form))->value($form->getInitialValues()));
    }
public function form(IForm $form) : InnerFormFieldBuilder
    {
        if ($form instanceof FormObject) {
            return new InnerFormObjectFieldBuilder($this->type(new InnerFormObjectType($form))->value($form));
        }

        return new InnerFormFieldBuilder($this->type(new InnerFormType($form))->value($form->getInitialValues()));
    }
public function form ( IForm $ form ) : InnerFormFieldBuilder { if ( $ form instanceof FormObject ) { return new InnerFormObjectFieldBuilder ( $ this -> type ( new InnerFormObjectType ( $ form ) ) -> value ( $ form ) ) ; } return new InnerFormFieldBuilder ( $ this -> type ( new InnerFormType ( $ form ) ) -> value ( $ form -> getInitialValues ( ) ) ) ; }
Validates the input as an submission to a inner form.

@param IForm $form

@return InnerFormFieldBuilder
Validates the input as an submission to a inner form .