Solve.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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\Dispatch;
  6. use Magento\Framework\Controller\ResultFactory;
  7. /**
  8. * Temando Solve Dispatch Failures Action
  9. *
  10. * @package Temando\Shipping\Controller
  11. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  12. * @author Sebastian Ertner <sebastian.ertner@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 Solve extends AbstractDispatchAction
  17. {
  18. /**
  19. * Render template.
  20. *
  21. * @return \Magento\Backend\Model\View\Result\Page
  22. */
  23. public function execute()
  24. {
  25. /** @var \Magento\Backend\Model\View\Result\Page $resultPage */
  26. $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
  27. $resultPage->setActiveMenu('Temando_Shipping::dispatches');
  28. $resultPage->getConfig()->getTitle()->prepend(__('Find Solutions'));
  29. $resultPage->addBreadcrumb(__('Dispatches'), __('Dispatches'), $this->getUrl('temando/dispatch'));
  30. $resultPage->addBreadcrumb(__('Find Solutions'), __('Find Solutions'));
  31. return $resultPage;
  32. }
  33. }