Index.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\Batch;
  6. use Magento\Framework\Controller\ResultFactory;
  7. use Temando\Shipping\Controller\Adminhtml\Activation\AbstractRegisteredAction;
  8. /**
  9. * Temando List Batches Action
  10. *
  11. * @package Temando\Shipping\Controller
  12. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  13. * @author Sebastian Ertner <sebastian.ertner@netresearch.de>
  14. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  15. * @link http://www.temando.com/
  16. */
  17. class Index extends AbstractRegisteredAction
  18. {
  19. const ADMIN_RESOURCE = 'Temando_Shipping::batches';
  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::batches');
  28. $resultPage->getConfig()->getTitle()->prepend(__('Batches'));
  29. $resultPage->addBreadcrumb(__('Batches'), __('Batches'), $this->getUrl('temando/batch'));
  30. return $resultPage;
  31. }
  32. }