Grid.php 579 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Newsletter\Controller\Adminhtml\Template;
  8. class Grid extends \Magento\Newsletter\Controller\Adminhtml\Template
  9. {
  10. /**
  11. * JSON Grid Action
  12. *
  13. * @return void
  14. */
  15. public function execute()
  16. {
  17. $this->_view->loadLayout();
  18. $grid = $this->_view->getLayout()->createBlock(
  19. \Magento\Newsletter\Block\Adminhtml\Template\Grid::class
  20. )->toHtml();
  21. $this->getResponse()->setBody($grid);
  22. }
  23. }