/** * @param \Orm\Zed\Discount\Persistence\SpyDiscountVoucher $discountVoucherEntity * * @return string */ protected function buildLinks(SpyDiscountVoucher $discountVoucherEntity) { $buttons = []; $deleteVoucherCodeUrl = Url::generate('/discount/voucher/delete-voucher-code', ['id-discount' => $this->idDiscount, 'id-voucher' => $discountVoucherEntity->getIdDiscountVoucher()])->build(); $buttons[] = $this->generateRemoveButton($deleteVoucherCodeUrl, 'Delete'); return implode(' ', $buttons); }