Elcodi\Admin\CouponBundle\Controller\CouponController::deleteAction PHP Method

deleteAction() public method

Delete entity
public deleteAction ( Request $request, mixed $entity, string $redirectPath = null ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request Request
$entity mixed Entity to delete
$redirectPath string Redirect path
return Symfony\Component\HttpFoundation\RedirectResponse Redirect response
    public function deleteAction(Request $request, $entity, $redirectPath = null)
    {
        return parent::deleteAction($request, $entity, $this->generateUrl('admin_coupon_list'));
    }