Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
drupal_container() is deprecated, and all calls in the entity_reference module need to be replaced with Drupal::service(), except for where the module_handler service is requested, which needs to be replaced with Drupal::moduleHandler() (see #1957154)
Comment | File | Size | Author |
---|---|---|---|
#4 | replace-drupal_container-2003630-4.patch | 1.52 KB | alexander.ilivanov |
#1 | 2003630-1.patch | 1.52 KB | ebeyrent |
Comments
Comment #1
ebeyrent CreditAttribution: ebeyrent commentedComment #2
dawehnerLooks pretty good. I would assume that there is an issue to convert Drupal::service to Drupal::pluginManager
Comment #4
alexander.ilivanov CreditAttribution: alexander.ilivanov commenteddrupal_container() replaced
Patch attached.
Comment #5
podarokif bot happy - rtbc
patch looks good for me
Comment #6
alexpottCommitted 24f36dd and pushed to 8.x. Thanks!