Index.php 898 B

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