init
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace Stemcell\Customer\Block\Widget\Product;
|
||||
|
||||
class ProductsList extends \Magento\CatalogWidget\Block\Product\ProductsList
|
||||
{
|
||||
protected ?string $moreLink = null;
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getLinkAttributes(): ?string
|
||||
{
|
||||
if ($this->moreLink) {
|
||||
return $this->moreLink;
|
||||
}
|
||||
|
||||
$more = (string)$this->getData('more');
|
||||
if ($more && !\Zend_Uri::check($more)) {
|
||||
return $this->moreLink = $this->_urlBuilder->getUrl($more);
|
||||
}
|
||||
return $this->moreLink = $more;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user