Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Chooser.php
Go to the documentation of this file.
1 <?php
8 
10 {
16  public function execute()
17  {
18  $uniqId = $this->getRequest()->getParam('uniq_id');
19  $chooserBlock = $this->_view->getLayout()->createBlock(
20  \Magento\SalesRule\Block\Adminhtml\Promo\Widget\Chooser::class,
21  '',
22  ['data' => ['id' => $uniqId]]
23  );
24  $this->getResponse()->setBody($chooserBlock->toHtml());
25  }
26 }