Coupons.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Block\Adminhtml\Order\Create;
  7. /**
  8. * Adminhtml sales order create coupons block
  9. *
  10. * @api
  11. * @author Magento Core Team <core@magentocommerce.com>
  12. * @since 100.0.2
  13. */
  14. class Coupons extends \Magento\Sales\Block\Adminhtml\Order\Create\AbstractCreate
  15. {
  16. /**
  17. * Constructor
  18. *
  19. * @return void
  20. */
  21. protected function _construct()
  22. {
  23. parent::_construct();
  24. $this->setId('sales_order_create_coupons_form');
  25. }
  26. /**
  27. * Get coupon code
  28. *
  29. * @return string
  30. */
  31. public function getCouponCode()
  32. {
  33. return $this->getQuote()->getCouponCode();
  34. }
  35. /**
  36. * Get header text
  37. *
  38. * @return \Magento\Framework\Phrase
  39. */
  40. public function getHeaderText()
  41. {
  42. return __('Coupons');
  43. }
  44. /**
  45. * Get header css class
  46. *
  47. * @return string
  48. */
  49. public function getHeaderCssClass()
  50. {
  51. return 'head-promo-quote';
  52. }
  53. }