Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Review Class Reference
Inheritance diagram for Review:
SectionSourceInterface

Public Member Functions

 __construct (\Magento\Framework\Session\Generic $reviewSession)
 
 getSectionData ()
 

Protected Attributes

 $reviewSession
 

Detailed Description

Review section

Definition at line 14 of file Review.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Framework\Session\Generic  $reviewSession)
Parameters
\Magento\Framework\Session\Generic$reviewSession

Definition at line 24 of file Review.php.

25  {
26  $this->reviewSession = $reviewSession;
27  }

Member Function Documentation

◆ getSectionData()

getSectionData ( )

{Get data

Returns
array
}

Implements SectionSourceInterface.

Definition at line 32 of file Review.php.

33  {
34  return (array)$this->reviewSession->getFormData(true) + ['nickname' => '','title' => '', 'detail' => ''];
35  }

Field Documentation

◆ $reviewSession

$reviewSession
protected

Definition at line 19 of file Review.php.


The documentation for this class was generated from the following file: