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::config() has already been saved in the $config variable, and $config->get() is properly used everywhere following that except in one place where another \Drupal::config()->get() is performed. $config->get() should be used everywhere.
Comment | File | Size | Author |
---|---|---|---|
locale-config.patch | 896 bytes | TR | |
Comments
Comment #1
LinL CreditAttribution: LinL commentedLooks good, gets rid of unnecessary call to \Drupal::config. RTBC.
Comment #2
webchickNice catch! Performance++
Committed and pushed to 8.x. Thanks!