Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
WishlistSettings.php
Go to the documentation of this file.
1 <?php
8 
10 
17 {
21  private $helper;
22 
27  public function __construct(Data $helper)
28  {
29  $this->helper = $helper;
30  }
31 
40  public function afterGetData(\Magento\Catalog\Ui\DataProvider\Product\Listing\DataProvider $subject, $result)
41  {
42  $result['allowWishlist'] = $this->helper->isAllow();
43 
44  return $result;
45  }
46 }
$helper
Definition: iframe.phtml:13
afterGetData(\Magento\Catalog\Ui\DataProvider\Product\Listing\DataProvider $subject, $result)