23 protected $_template =
'Magento_Review::customer/list.phtml';
56 $this->_collectionFactory = $collectionFactory;
57 parent::__construct($context,
$data);
73 return $this->filterManager->truncate(
75 [
'length' => $length,
'etc' => $etc,
'remainder' => $remainder,
'breakWords' => $breakWords]
86 if (!(
$customerId = $this->currentCustomer->getCustomerId())) {
90 $this->
_collection = $this->_collectionFactory->create();
92 ->addStoreFilter($this->_storeManager->getStore()->getId())
109 return $this->
getUrl(
'review/customer/view/');
119 return $this->
getUrl(
'catalog/product/view/');
130 return $this->
formatDate($date, \IntlDateFormatter::SHORT);
140 return $this->
getUrl(
'review/customer');
151 return $this->
getUrl(
'review/customer/view', [
'id' =>
$id]);
formatDate( $date=null, $format=\IntlDateFormatter::SHORT, $showTime=false, $timezone=null)
getUrl($route='', $params=[])
truncateString($value, $length=80, $etc='...', &$remainder='', $breakWords=true)
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Review\Model\ResourceModel\Review\Product\CollectionFactory $collectionFactory, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, array $data=[])