Log in
Model

Pool

Magento\Catalog\Model\Product\Type\Pool

What it does

This class acts as a factory pool for retrieving product type instances in Magento 2.

Developers use it to obtain specific product type objects (like Simple, Configurable, Bundle, etc.) by providing the class name.

It ensures type safety by validating that all returned instances extend the AbstractType class, throwing an exception if they don't.

Public Methods

  • get()