I have upgraded my Drupal 9 site to Drupal 10.1.
One of my custom module uses \Drupal::service('menu.tree_storage')->loadByProperties();
which works fine in drupal 9.5.9, but I get the following error message in Drupal 10.1.
You have requested a non-existent service "menu.tree_storage"
When I used drush dcs | grep "tree"
, the menu.tree_storage is missing from my Drupal 10 site. Yet it is listed as an argument in the core.services.yml file.
Is there a way to fix this?
private
that could be involved. What is thedcs
Drush subcommand? I'm not familiar with it.