/** * Get parameters to clear compare list * * @return string */ public function getPostDataClearList() { $refererUrl = $this->_getRequest()->getServer('HTTP_REFERER'); $params = array(\Magento\Framework\App\Action\Action::PARAM_NAME_URL_ENCODED => $this->urlEncode($refererUrl)); return $this->_coreHelper->getPostData($this->getClearListUrl(), $params); }