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.
The language manager loads one language to find the storage to call listAll() on.
That's not necessary, we can just call it on the config factory(). Does save an unnecessary cache call.
Comment | File | Size | Author |
---|---|---|---|
#1 | improve-language-loading-2228129-1.patch | 837 bytes | Berdir |
Comments
Comment #1
BerdirThe patch.
Comment #2
plachLooks sensible to me
Comment #3
plachComment #4
alexpottCommitted bb78e06 and pushed to 8.x. Thanks!
Comment #6
YesCT CreditAttribution: YesCT commentedthis patch changed the code, but not the comment about the code...
anyway, we dont want to use config. and want to use the entity system, so #2239497: [Meta] Fix ConfigurableLanguageManager getLanguages()