58 $this->_collectionFactory = $collectionFactory;
88 $toolbar = $this->
getLayout()->createBlock(
89 \
Magento\Theme\Block\Html\Pager::class,
90 'customer_review_list.toolbar' 95 $this->
setChild(
'toolbar', $toolbar);
97 return parent::_prepareLayout();
107 if (!(
$customerId = $this->currentCustomer->getCustomerId())) {
111 $this->
_collection = $this->_collectionFactory->create();
113 ->addStoreFilter($this->_storeManager->getStore()->getId())
128 return $this->
getUrl(
'review/customer/view/');
140 return $this->
getUrl(
'review/customer/view', [
'id' =>
$review->getReviewId()]);
151 return $this->
getUrl(
'catalog/product/view/');
174 return $this->
formatDate($date, \IntlDateFormatter::SHORT);
186 $reviews->load()->addReviewSummary();
188 return parent::_beforeToHtml();
$customerAccountManagement
formatDate( $date=null, $format=\IntlDateFormatter::SHORT, $showTime=false, $timezone=null)
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory, CustomerRepositoryInterface $customerRepository, AccountManagementInterface $customerAccountManagement, \Magento\Review\Model\ResourceModel\Review\Product\CollectionFactory $collectionFactory, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, array $data=[])
getUrl($route='', $params=[])
getChildHtml($alias='', $useCache=true)