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.
Problem/Motivation
As discussed in #3094340: Deprecated Code Report and Drupal 9 readiness, current codebase in tests use the following code to instantiate services:
Drupal::service()
Proposed resolution
It should be with:
$this->container->get()
Remaining tasks
Update tests codebase.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
None.
Issue fork config_devel-3139434
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
GrimreaperMR ready for review :)
Comment #5
joachim CreditAttribution: joachim as a volunteer commentedLooks good!
Merged! Thanks!