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 calls should be avoided in classes, use dependency injection instead.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3121074-2.patch | 3.89 KB | neelam_wadhwani |
Comments
Comment #2
neelam_wadhwani CreditAttribution: neelam_wadhwani at Valuebound for Valuebound commentedKIndly review patch.
Comment #4
Tom.Camp CreditAttribution: Tom.Camp at CivicActions commentedThank you neelam_wadhwani. Your patch had a conflict with another patch that I had applied, but I corrected this issue by adding `'@config.factory'` to the drush.services.yml and using the ConfigFactoryInterface to get the settings.
Comment #5
Tom.Camp CreditAttribution: Tom.Camp at CivicActions commented