Model
ProductType
Magento\Catalog\Model\ProductType
What it does
This class represents a product type data object in Magento 2's catalog system.
Developers use it to retrieve and set information about product types (such as 'simple', 'configurable', 'bundle') including their internal code name and human-readable label.
It's primarily used when working with the Catalog API to identify and display different product type options available in the system.
Public Methods
- getName()
- getLabel()
- setName()
- setLabel()
- getExtensionAttributes()
- setExtensionAttributes()