- π¬π§United Kingdom 8bitplateau
When adding the patch, and then running
drush cr
to kick it in, Drupal complains about missing proxy class[warning] Missing proxy class 'Drupal\context\ProxyClass\ContextMenuActiveTrail' for lazy service 'menu.active_trail'. Use the following command to generate the proxy class: php core/scripts/generate-proxy-class.php 'Drupal\context\ContextMenuActiveTrail' "modules/contrib/context/src" ProxyServicesPass.php:66
Running this adds the proxy class. Looking around other modules like menu active trail, it looks like this is correct.
Runningdrush cr
again and the error is gone. The behavior is correct and the menu is set, but the warning is still visible in the context edit form.Attached is another patch with the original fix, and the proxy class.
- πΊπΈUnited States aasarava
Thanks, @8bitplateau. I extended your ProxyClass patch with a small update to context.module that removes the warning message on the context edit form. Since this issue is closed and there's an active MR open for Context 5.0, I made the updates over there:
https://www.drupal.org/project/context/issues/3343912#mr45-note385365 π Context module: "Menu Reactions" will not work because menu.active_trail has a different menu service provider. Postponed: needs info