Log in
Model

Type

Magento\Catalog\Model\Product\Type

What it does

This class serves as a central registry and factory for managing different product types in Magento 2 (simple, bundle, virtual, etc.).

Developers use it to retrieve product type instances, get price models for specific product types, access product type labels and options for admin forms, and determine whether a product type is composite.

It's commonly used when working with multiple product types or building features that need to adapt to different product type behaviors.

Public Methods

  • _resetState()
  • factory()
  • priceFactory()
  • getPriceInfo()
  • getOptionArray()
  • getAllOption()
  • getAllOptions()
  • getOptions()
  • getOptionText()
  • getTypes()
  • getCompositeTypes()
  • getTypesByPriority()
  • toOptionArray()