Edit.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Controller\Adminhtml\Settings\Checkout;
  6. use Magento\Framework\Controller\ResultFactory;
  7. use Temando\Shipping\Controller\Adminhtml\Activation\AbstractRegisteredAction;
  8. /**
  9. * Edit Checkout Settings Action
  10. *
  11. * @package Temando\Shipping\Controller
  12. * @author Max Melzer <max.melzer@netresearch.de>
  13. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  14. * @link http://www.temando.com/
  15. */
  16. class Edit extends AbstractRegisteredAction
  17. {
  18. /**
  19. * @return \Magento\Backend\Model\View\Result\Page
  20. */
  21. public function execute()
  22. {
  23. /** @var \Magento\Backend\Model\View\Result\Page $resultPage */
  24. $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
  25. $resultPage->setActiveMenu('Magento_Config::system_config');
  26. $resultPage->getConfig()->getTitle()->prepend(__('Configuration'));
  27. $resultPage->getConfig()->getTitle()->prepend(__('Checkout View Settings'));
  28. $resultPage->addBreadcrumb(
  29. __('Checkout View Settings'),
  30. __('Checkout View Settings'),
  31. $this->getUrl('temando/settings_checkout/edit')
  32. );
  33. return $resultPage;
  34. }
  35. }