View.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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 View Dispatch 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 View 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(__('Dispatches'));
  29. $resultPage->addBreadcrumb(__('Dispatches'), __('Dispatches'), $this->getUrl('temando/dispatch'));
  30. return $resultPage;
  31. }
  32. }