Skip to content

Does Magento 2 have a native method to get all children (all levels) of a specified category?

Just like the title:

Does Magento 2 have a native method to get all children of a specified category?

I need an object or array with all children (so including sub-children, sub-sub-children etc.). A tree would also suffice, since I can transform it in a list.