Log in
Model

Customer

Magento\Tax\Model\TaxClass\Source\Customer

What it does

This class provides customer tax class options for use in dropdown menus and form fields throughout Magento.

Developers use this as a source model for EAV attributes or admin form fields that need to display available customer tax classes (like 'Retail Customer', 'Wholesale', etc.) as selectable options.

It retrieves all customer-type tax classes from the repository and formats them into label-value pairs.

Public Methods

  • getAllOptions()