Beispiel #1
0
 /**
  * @param \Magento\Framework\App\Helper\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param CustomerViewHelper $customerViewHelper
  * @param \Magento\Framework\Session\Generic $testimonialSession
  */
 public function __construct(\Magento\Framework\App\Helper\Context $context, \Magento\Customer\Model\Session $customerSession, CustomerViewHelper $customerViewHelper, \Magento\Framework\Session\Generic $testimonialSession)
 {
     $this->_customerSession = $customerSession;
     $this->_customerViewHelper = $customerViewHelper;
     $this->_data = $testimonialSession->getFormData(true);
     parent::__construct($context);
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  */
 public function getSectionData()
 {
     return (array) $this->reviewSession->getFormData(true) + ['nickname' => '', 'title' => '', 'detail' => ''];
 }