Log in
Model

TaxClass

Magento\Tax\Model\Config\TaxClass

What it does

This class handles the configuration for the default product tax class setting in Magento's admin panel.

When an admin changes the default tax class configuration, this class automatically updates the tax_class_id product attribute's default value to match the new setting, ensuring newly created products inherit the correct tax class.

Public Methods

  • afterSave()