src/FondOfSpryker/Yves/AvailabilityAlert/Controller/SubmitController.php
public function indexAction(Request $request)
    {
        $parentRequest = $this->getParentRequest();
        $idProductAbstract = $request->attributes->get('idProductAbstract');

        $subscriptionForm = $this->getFactory()
            ->createSubscriptionForm($idProductAbstract)
            ->handleRequest($parentRequest);

        $this->processSubscriptionForm($subscriptionForm, $request);

        return [
            'subscriptionForm' => $subscriptionForm->createView(),
        ];
    }
public function indexAction(Request $request)
    {
        $parentRequest = $this->getParentRequest();
        $idProductAbstract = $request->attributes->get('idProductAbstract');

        $subscriptionForm = $this->getFactory()
            ->createSubscriptionForm($idProductAbstract)
            ->handleRequest($parentRequest);

        $this->processSubscriptionForm($subscriptionForm, $request);

        return [
            'subscriptionForm' => $subscriptionForm->createView(),
        ];
    }
@param \Symfony\Component\HttpFoundation\Request $request

@return array