draft: Convert usage stat pages to use #lazy_builder

Closes #3583737

We are now using the render cache for project usage page content. This does not avoid calling the controller function which does the data loading. https://www.drupal.org/docs/drupal-apis/render-api/auto-placeholdering has more of an explanation.

I prompted Claude to get this implemented, but have not tested this at all. This is mostly to stash the diff in case we want/need it. Most of the changes cascade from

#lazy_builder has constraints though — arguments must be scalar, and the callback must be static. That means $this->usageService and $this->pagerManager would need to be retrieved from the container inside the static method, which is less clean than the current injected-service approach.

Edited by Neil Drumm

Merge request reports

Loading