Index.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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\Pickup;
  6. use Magento\Backend\App\Action;
  7. use Magento\Framework\Controller\ResultFactory;
  8. /**
  9. * List Pickups Page
  10. *
  11. * @package Temando\Shipping\Controller
  12. * @author Sebastian Ertner <sebastian.ertner@netresearch.de>
  13. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  14. * @link https://www.temando.com/
  15. */
  16. class Index extends Action
  17. {
  18. const ADMIN_RESOURCE = 'Temando_Shipping::pickups';
  19. /**
  20. * @return \Magento\Backend\Model\View\Result\Page
  21. */
  22. public function execute()
  23. {
  24. /** @var \Magento\Backend\Model\View\Result\Page $resultPage */
  25. $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
  26. $resultPage->setActiveMenu('Temando_Shipping::pickups');
  27. $resultPage->getConfig()->getTitle()->prepend(__('Pickups'));
  28. $resultPage->addBreadcrumb(__('Pickups'), __('Pickups'), $this->getUrl('temando/pickup'));
  29. return $resultPage;
  30. }
  31. }