Index.php 982 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Backup\Controller\Adminhtml\Index;
  8. use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
  9. class Index extends \Magento\Backup\Controller\Adminhtml\Index implements HttpGetActionInterface
  10. {
  11. /**
  12. * Backup list action
  13. *
  14. * @return void
  15. */
  16. public function execute()
  17. {
  18. if ($this->getRequest()->getParam('ajax')) {
  19. $this->_forward('grid');
  20. return;
  21. }
  22. $this->_view->loadLayout();
  23. $this->_setActiveMenu('Magento_Backup::system_tools_backup');
  24. $this->_view->getPage()->getConfig()->getTitle()->prepend(__('Backups'));
  25. $this->_addBreadcrumb(__('System'), __('System'));
  26. $this->_addBreadcrumb(__('Tools'), __('Tools'));
  27. $this->_addBreadcrumb(__('Backups'), __('Backup'));
  28. $this->_view->renderLayout();
  29. }
  30. }