Closed (fixed)
Project:
Media Directories
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2020 at 13:55 UTC
Updated:
26 Jun 2020 at 21:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
albertski commentedTo prevent this error, checking if the interface of ConfigurableLanguageManagerInterface.
Comment #3
ytsurkThank you for reporting this issue. I think it's important to adapt the update_hooks as they will (maybe) copied in the future.
I found a similar issue here #2484125: Simpletest gives a false pass to InstallerTranslationMultipleLanguageForeignTest in CLI and TestBot, but not GUI and checking for the interface makes sense to me. I will test your patch soonish ...
I guess config translation needs to be disabled to reproduce?
Why do you use
\Drupal::service('language_manager')instead of\Drupal->languageManager(), I think using the languageManager function is clearer and more reliable?Comment #4
ytsurkUpdated your patch, thanks again!
Comment #5
albertski commentedGood point. I agree
\Drupal->languageManager()is clearer. I believe config translations were disabled. Thanks.Comment #7
ytsurk