48 parent::__construct($context);
59 $hash = explode(
':', $this->urlDecoder->decode($hash));
60 if (count($hash) === 3 && in_array($hash[0], $this->_allowedHashKeys)) {
61 return [
'key' => $hash[0],
'id' => (int)$hash[1],
'hash' => $hash[2]];
77 $urlPart =
"{$key}:{$model->{$method}()}:{$model->getProtectCode()}";
79 '_scope' =>
$model->getStoreId(),
81 '_direct' =>
'shipping/tracking/popup',
82 '_query' => [
'hash' => $this->urlEncoder->encode($urlPart)]
85 return $this->url->getUrl(
'',
$params);
elseif(isset( $params[ 'redirect_parent']))
getTrackingPopupUrlBySalesModel($model)
__construct(\Magento\Framework\App\Helper\Context $context, StoreManagerInterface $storeManager, UrlInterface $url=null)
_getTrackingUrl($key, $model, $method='getId')
decodeTrackingHash($hash)
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]