• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/Product/ProductFactory.php
  • Класс: BitrixCatalogv2ProductProductFactory
  • Вызов: ProductFactory::createEntity
public function createEntity(string $entityClass = self::PRODUCT): BaseIblockElementEntity
{
	if (!is_subclass_of($entityClass, BaseProduct::class))
	{
		throw new NotSupportedException(sprintf(
			'Entity with type {%s} must be an instance of {%s}.',
			$entityClass, BaseProduct::class
		));
	}

	return $this->makeEntity($entityClass);
}