Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TaxSettings.php
Go to the documentation of this file.
1 <?php
8 
10 
17 {
21  private $config;
22 
27  public function __construct(Config $config)
28  {
29  $this->config = $config;
30  }
31 
40  public function afterGetData(\Magento\Catalog\Ui\DataProvider\Product\Listing\DataProvider $subject, $result)
41  {
42  $result['displayTaxes'] = $this->config
43  ->getValue(\Magento\Tax\Model\Config::CONFIG_XML_PATH_PRICE_DISPLAY_TYPE);
44 
45  return $result;
46  }
47 }
$config
Definition: fraud_order.php:17
afterGetData(\Magento\Catalog\Ui\DataProvider\Product\Listing\DataProvider $subject, $result)
Definition: TaxSettings.php:40