Example #1
0
 /**
  * Check whether wishlist item has description
  *
  * @param \Magento\Wishlist\Model\Item $item
  * @return bool
  */
 public function hasDescription($item)
 {
     $hasDescription = parent::hasDescription($item);
     if ($hasDescription) {
         return $item->getDescription() !== $this->_wishlistHelper->defaultCommentString();
     }
     return $hasDescription;
 }