Change record status: 
Project: 
Introduced in branch: 
10.2.x
Introduced in version: 
10.2.0
Description: 

Both \Drupal\book\BookManager and \Drupal\Core\Menu\MenuActiveTrail are now lazy loading services.

Because of that, the following constructors have now changed:

  • \Drupal\book\Cache\BookNavigationCacheContext::__construct now requires a $bookManagerService of type \Drupal\book\BookManagerInterface as its second argument.
  • \Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext::__construct now requires a $menuActiveTrailService of type \Drupal\Core\Menu\MenuActiveTrailInterface as its only argument.

Failing to do so will trigger a deprecation message from 10.2.0 upwards, and a failure after 11.0.0 .

Impacts: 
Module developers