By spokje on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.2.x
Introduced in version:
10.2.0
Issue links:
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::__constructnow requires a$bookManagerServiceof type\Drupal\book\BookManagerInterfaceas its second argument.\Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext::__constructnow requires a$menuActiveTrailServiceof type\Drupal\Core\Menu\MenuActiveTrailInterfaceas 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