123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Sales\Block\Adminhtml\Order\Create;
- /**
- * Adminhtml sales order create coupons block
- *
- * @api
- * @author Magento Core Team <core@magentocommerce.com>
- * @since 100.0.2
- */
- class Coupons extends \Magento\Sales\Block\Adminhtml\Order\Create\AbstractCreate
- {
- /**
- * Constructor
- *
- * @return void
- */
- protected function _construct()
- {
- parent::_construct();
- $this->setId('sales_order_create_coupons_form');
- }
- /**
- * Get coupon code
- *
- * @return string
- */
- public function getCouponCode()
- {
- return $this->getQuote()->getCouponCode();
- }
- /**
- * Get header text
- *
- * @return \Magento\Framework\Phrase
- */
- public function getHeaderText()
- {
- return __('Coupons');
- }
- /**
- * Get header css class
- *
- * @return string
- */
- public function getHeaderCssClass()
- {
- return 'head-promo-quote';
- }
- }
|