Edit.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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\Configuration\Location;
  6. use Magento\Framework\Controller\ResultFactory;
  7. use Magento\Backend\App\Action;
  8. /**
  9. * Temando Edit Location Action
  10. *
  11. * @package Temando\Shipping\Controller
  12. * @author Christoph Aßmann <christoph.assmann@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 Action
  17. {
  18. const ADMIN_RESOURCE = 'Temando_Shipping::locations';
  19. /**
  20. * Edit location
  21. *
  22. * @return \Magento\Framework\Controller\ResultInterface
  23. */
  24. public function execute()
  25. {
  26. /** @var \Magento\Backend\Model\View\Result\Page $resultPage */
  27. $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
  28. $resultPage->setActiveMenu('Temando_Shipping::locations');
  29. $resultPage->getConfig()->getTitle()->prepend(__('Locations'));
  30. $resultPage->getConfig()->getTitle()->prepend(__('Edit Location'));
  31. $resultPage->addBreadcrumb(__('Locations'), __('Locations'), $this->getUrl('temando/configuration_location'));
  32. $resultPage->addBreadcrumb(__('Edit Location'), __('Edit Location'));
  33. return $resultPage;
  34. }
  35. }