CmsPageGrid.php 770 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\UrlRewrite\Controller\Adminhtml\Url\Rewrite;
  8. use Magento\Framework\App\Action\HttpGetActionInterface;
  9. use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
  10. use Magento\UrlRewrite\Controller\Adminhtml\Url\Rewrite as RewriteAction;
  11. class CmsPageGrid extends RewriteAction implements HttpPostActionInterface, HttpGetActionInterface
  12. {
  13. /**
  14. * Ajax CMS pages grid action
  15. *
  16. * @return void
  17. */
  18. public function execute()
  19. {
  20. $this->getResponse()->setBody(
  21. $this->_view->getLayout()->createBlock(\Magento\UrlRewrite\Block\Cms\Page\Grid::class)->toHtml()
  22. );
  23. }
  24. }