Reviews.php 623 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Dotdigitalgroup\Email\Controller\Feefo;
  3. class Reviews extends \Dotdigitalgroup\Email\Controller\Response
  4. {
  5. /**
  6. * @throws \Magento\Framework\Exception\LocalizedException
  7. *
  8. * @return null
  9. */
  10. public function execute()
  11. {
  12. //authenticate
  13. if ($this->authenticate()) {
  14. $quote = $this->getRequest()->getParam('quote_id');
  15. if (!$this->helper->getFeefoLogon() or !$quote) {
  16. return $this->sendNoContentResponse();
  17. }
  18. $this->_view->loadLayout();
  19. $this->_view->renderLayout();
  20. }
  21. }
  22. }