Log in
Model

Product

Magento\Tax\Model\TaxClass\Source\Product

What it does

This class provides product tax class options for use in EAV attribute dropdowns and forms throughout Magento.

Developers use this as a source model for product attributes that need to display available tax classes, such as the tax class selector in product configuration.

It retrieves tax classes from the repository and formats them as options with labels and values.

Public Methods

  • getAllOptions()
  • getOptionText()
  • getFlatColumns()
  • getFlatUpdateSelect()