public function __construct(ModulesSettings $settings, array $installedModules, $multiLanguageIsEnabled, $name = null)
{
parent::__construct($name);
$this->settings = $settings;
$this->multiLanguageIsEnabled = $multiLanguageIsEnabled;
// some core modules don't have locale so we remove them to prevent showing errors we know of
$this->installedModules = array_filter($installedModules, function ($installedModule) {
return !in_array($installedModule, ['Error', 'Core', 'Authentication'], true);
});
}