/** * Retrieve Entered Data by key * * @param string $key * @return string|null */ public function getEnteredData($key) { if ($this->_enteredData === null) { $this->_enteredData = $this->_wishlistSession->getData('sharing_form', true); } if (!$this->_enteredData || !isset($this->_enteredData[$key])) { return null; } else { return $this->escapeHtml($this->_enteredData[$key]); } }