Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Review.php
Go to the documentation of this file.
1 <?php
8 
10 
15 {
19  protected $reviewSession;
20 
24  public function __construct(\Magento\Framework\Session\Generic $reviewSession)
25  {
26  $this->reviewSession = $reviewSession;
27  }
28 
32  public function getSectionData()
33  {
34  return (array)$this->reviewSession->getFormData(true) + ['nickname' => '','title' => '', 'detail' => ''];
35  }
36 }
__construct(\Magento\Framework\Session\Generic $reviewSession)
Definition: Review.php:24