Model
ProductType
Magento\Catalog\Model\ProductType
What it does
This class represents a product type entity in Magento 2's catalog system.
Developers use it to access or set product type information such as the type code (name) like 'simple', 'configurable', 'bundle' and its display label.
It's commonly used when working with product type listings, API responses, or when you need to programmatically handle different product types.
Public Methods
- getName()
- getLabel()
- setName()
- setLabel()
- getExtensionAttributes()
- setExtensionAttributes()