forward('KupShop\ContentBundle\Controller\ContactFormController::SendFormAction', ['type' => 'registration-b2b']); } if ($request->isMethod('POST')) { $B2BContactForm->setRequest($request); $B2BContactForm->setFormData(array_merge($request->query->all(), $request->request->all())); if ($B2BContactForm->submitForm()) { return new RedirectResponse( path('kupshop_content_contactform_sendform_sent', ['type' => 'registration-b2b-default']) ); } } return $B2BContactForm->getResponse(); } }