Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-review
CustomerData
Review.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Review\CustomerData
;
8
9
use
Magento\Customer\CustomerData\SectionSourceInterface
;
10
14
class
Review
implements
SectionSourceInterface
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
}
Magento\Customer\CustomerData\SectionSourceInterface
Definition:
SectionSourceInterface.php:14
Magento\Review\CustomerData\Review\__construct
__construct(\Magento\Framework\Session\Generic $reviewSession)
Definition:
Review.php:24
Magento\Review\CustomerData\Review\$reviewSession
$reviewSession
Definition:
Review.php:19
Magento
Magento\Review\CustomerData
Definition:
Review.php:7
Magento\Review\CustomerData\Review
Definition:
Review.php:14
Magento\Review\CustomerData\Review\getSectionData
getSectionData()
Definition:
Review.php:32