where it Is made Breadcrumb Array in Magento 2.3.1?
In Detail page has show Breadcrumb but i m not able to find where it Is made Breadcrumb Array
Can somebody help me?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
For product page breadcrumbs loading from
Basically the code is checking if category path included in url then its creating breadcrumbs path from url, otherwise it will check for referral url and if referral is category url then it will find category title and url from menu dropdown
See function _resolveCategoryCrumbs
So if category is not included in menu then it won't show breadcrumbs!
There are quite a few places. Breadcrumbs are used almost identical as they were in Magento 1.
The module responsible with them is: Magento_Theme. They are added to the layout in:
Now, each module that renders pages, can modify/add what breadcrumbs they want.
As I can see, you are interested in product page. That is rendered "_prepareLayout()" from:
If you want to find them all, just search all the magento vendor module for:
and it is creating json from below file https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Catalog/ViewModel/Product/Breadcrumbs.php#L104
hope it will clear your doubts.