Chooser.php 696 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\SalesRule\Controller\Adminhtml\Promo\Quote;
  8. class Chooser extends \Magento\SalesRule\Controller\Adminhtml\Promo\Quote
  9. {
  10. /**
  11. * Chooser source action
  12. *
  13. * @return void
  14. */
  15. public function execute()
  16. {
  17. $uniqId = $this->getRequest()->getParam('uniq_id');
  18. $chooserBlock = $this->_view->getLayout()->createBlock(
  19. \Magento\SalesRule\Block\Adminhtml\Promo\Widget\Chooser::class,
  20. '',
  21. ['data' => ['id' => $uniqId]]
  22. );
  23. $this->getResponse()->setBody($chooserBlock->toHtml());
  24. }
  25. }