weeeHelper = $weeeHelper; parent::__construct($context, $priceCurrency, $helper, $data); } /** * Returns the list of default exclusions * * @return array */ public function getDefaultExclusions() { $exclusions = parent::getDefaultExclusions(); $exclusions[] = \Magento\Weee\Pricing\TaxAdjustment::ADJUSTMENT_CODE; // Determine if the Weee amount should be excluded from the price if ($this->typeOfDisplay([Tax::DISPLAY_EXCL_DESCR_INCL, Tax::DISPLAY_EXCL])) { $exclusions[] = \Magento\Weee\Pricing\Adjustment::ADJUSTMENT_CODE; } return $exclusions; } /** * Returns display type for price accordingly to current zone * * @param int|int[]|null $compareTo * @param \Magento\Store\Model\Store|null $store * @return bool|int */ protected function typeOfDisplay($compareTo = null, $store = null) { return $this->weeeHelper->typeOfDisplay($compareTo, $this->getZone(), $store); } }