registry->registry(RegistryConstants::CURRENT_SALES_RULE); return $this->getUrl('esun_customer_coupon/customer/search', [ 'rule_id' => $rule ? (int)$rule->getId() : 0, ]); } }