Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function createComponentCouponForm(\App\Forms\ICouponFormFactory $factory)
- {
- $control = $factory->create($this->coupon);
- $control['coupon']->onSuccess[] = [$this, 'couponFormSucceeded'];
- return $control;
- }
- /**
- * @param UI\Form $form
- * @return void
- */
- public function couponFormSucceeded(UI\Form $form, $values)
- {
- $this->closeDialog('coupon');
- $this->redirect('coupons', ['id' => NULL]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement