Search code examples
shopwareshopware6

Where is the path property on category set?


I am working on a new Menu structure and needs to replicate the way path is added to Categories. I have tried to search through the code to locate where path is added - but I can't seem to find it anyware.

Can anyone point me in the right direction?


Solution

  • The path is indexed to a category by the CategoryIndexer calling TreeUpdater::batchUpdate and there's where the path is build.