How to get a bundle product's children?

API

Use the \Magento\Bundle\Model\Product\Type::getChildrenIds() method:

It is the bundle products implementation of the universal abstract \Magento\Catalog\Model\Product\Type\AbstractType::getChildrenIds() method:

A usage example

See also: