Loading categories by their IDs in Magento 2

- Fire development, Magento 2

Magento 2 Development

To load categories by their IDs in Magento 2, Dmitry Fedyuk recommends the following:

'

magento/magento2/blob/2.0.0/app/code/Magento/Catalog/Controller/Category/View.php#L124

Source

More tips from the cookbook

'