in drupal 9.2.7 I use a callback to update an entity reference field. The code I placed in version 8.8 works. I don't know if anything has changed in the 9.
Below is the code I use
I would like to have all shared albums of a certain google account automatically into a Drupal website.
I was able to establish a connection with 'Google_photos_api' and show all shared albums on site with code below. (I copied code below to a 'Simple page' - and use Full-HTML (source-code)
I'd like to apply the same autowire mechanism used for services to classes implementing ContainerInjectionInterface (ex: forms), to reduce boilerplate code.
For example I have currently: