When the first wave of the coronavirus hit, it became clear that there is a chance that patients will develop (long-term) symptoms after infection. Because it was a novel virus, often these patients did not receive the specialist care and guidance they needed. In the initial phase doctors simply did not know enough about the long-term consequences of a corona infection.
I am using a custom module to add an extra field to breadcrumbs, which was based on the accepted answer in this post on Drupal Answers.
I made a couple of changes to make the module Drupal 9-compatible, which I have marked by comments in the code below. As it stands, this modified mod ule still runs in Drupal 8.9, but it still will not work in Drupal 9.1. Can anyone spot why?