Definition at line 11 of file Popup.php.
◆ __construct()
- Parameters
-
\Magento\Framework\App\Action\Context | $context | |
\Magento\Framework\Registry | $coreRegistry | |
\Magento\Shipping\Model\InfoFactory | $shippingInfoFactory | |
\Magento\Sales\Model\OrderFactory | $orderFactory | |
Definition at line 36 of file Popup.php.
42 $this->_coreRegistry = $coreRegistry;
43 $this->_shippingInfoFactory = $shippingInfoFactory;
44 $this->_orderFactory = $orderFactory;
45 parent::__construct($context);
◆ execute()
Popup action Shows tracking info if it's present, otherwise redirects to 404
- Returns
- void
- Exceptions
-
NotFoundException | Get associated grouped products grid popup |
- Returns
- \Magento\Framework\View\Result\Layout
Implements ActionInterface.
Definition at line 55 of file Popup.php.
57 $shippingInfoModel = $this->_shippingInfoFactory->create()->loadByHash($this->
getRequest()->getParam(
'hash'));
58 $this->_coreRegistry->register(
'current_shipping_info', $shippingInfoModel);
59 if (count($shippingInfoModel->getTrackingInfo()) == 0) {
60 throw new NotFoundException(
__(
'Page not found.'));
62 $this->_view->loadLayout();
63 $this->_view->getPage()->getConfig()->getTitle()->set(
__(
'Tracking Information'));
64 $this->_view->renderLayout();
◆ $_coreRegistry
◆ $_orderFactory
◆ $_shippingInfoFactory
The documentation for this class was generated from the following file:
- vendor/magento/module-shipping/Controller/Tracking/Popup.php