Log in
Interface

ProductTypeInterface

Magento\Catalog\Api\Data\ProductTypeInterface

What it does

This interface defines the contract for working with Magento 2 product type data objects.

Developers use it to retrieve or set product type information such as the type code (name) and human-readable label (e.g., 'simple', 'configurable').

It's commonly used in custom modules when you need to work with product types programmatically through the API or service layer.

Public Methods

  • getName()
  • setName()
  • getLabel()
  • setLabel()
  • getExtensionAttributes()
  • setExtensionAttributes()