Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
EmailLink.php
Go to the documentation of this file.
1 <?php
11 
19 class EmailLink extends Link
20 {
24  protected $_template = 'Magento_Wishlist::rss/email.phtml';
25 
29  protected function getLinkParams()
30  {
31  $params = parent::getLinkParams();
32  $wishlist = $this->wishlistHelper->getWishlist();
33  $sharingCode = $wishlist->getSharingCode();
34  if ($sharingCode) {
35  $params['sharing_code'] = $sharingCode;
36  }
37  return $params;
38  }
39 }
$wishlist
Definition: wishlist.php:10
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18