I have created the plugin for a particular function. That function is also calling another protected
function of the core file.
public function afterPopulateTaxRateData(
\Magento\Tax\Model\Calculation\Rate\Converter $subject,
$result,
$formData
) {
if ($this->_helper->isEnable()) {
if (isset($formData['zip_is_range']) && $formData['zip_is_range']) {
if ($this->_helper->isRangeEnable()) {
$result->setTaxCity($this->extractFormData($formData, 'tax_city'));
} else {
$result->setTaxCity("");
}
} else {
$result->setTaxCity($this->extractFormData($formData, 'tax_city'));
}
}
return $result;
}
How to call the protected
function extractFormData
inside this plugin.
Thanks.
$subject->extractFormData()
. Hope this will work – Ranganathan Nov 7 '19 at 5:01extractFormData
function from the core and put it in your plugin or else use$subject->extractFormData()
and check it. – Dhaduk Mitesh Nov 7 '19 at 5:01extractFormData
function from the core and put it in your plugin and check it. – Dhaduk Mitesh Nov 7 '19 at 8:29