* @author Sebastian Ertner * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @link http://www.temando.com/ */ class Index extends AbstractRegisteredAction { const ADMIN_RESOURCE = 'Temando_Shipping::locations'; /** * List locations * * @return \Magento\Framework\Controller\ResultInterface */ public function execute() { /** @var \Magento\Backend\Model\View\Result\Page $resultPage */ $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE); $resultPage->setActiveMenu('Temando_Shipping::locations'); $resultPage->getConfig()->getTitle()->prepend(__('Locations')); $resultPage->getConfig()->getTitle()->prepend(__('Locations')); $resultPage->addBreadcrumb(__('Locations'), __('Locations'), $this->getUrl('temando/configuration_location')); $resultPage->addBreadcrumb(__('Locations'), __('Locations')); return $resultPage; } }