How to add a cache context from an existing menu? I want to update my breadcrumb when the menu structure changes. This did not work:

$breadcrumb-&gt;addCacheContexts(['route']);


Whats the correct way?

Edit: some more context (pun actually intended):


  I have a breadcrumb which adds the menu structure of the current
  node's menu parents as links. Obviously, when the structure somehow
  changes, the breadcrumb has to get updated also.
Apparently it's:

$breadcrumb-&gt;addCacheContexts(['route.menu_active_trails:main']);


and

$breadcrumb-&gt;addCacheTags(['config:system.menu.main']);