Detector
class Detector (View source)
Methods
                    static Section|null
                
                
                    getPreferredSection()
        
                                            
                
            Returns the preferred section based on session, cookie, user object, default browser (if allowed), and finally site preferences.
                    setupSiteInterfaceLocalization(Page $c = null)
        
                                            
                
            Set the locale associated to the 'site' localization context.
                    static bool
                
                
                    isEnabled()
        
                                            
                
            Check if there's some multilingual section.
Details
        
                static            Section|null
    getPreferredSection()
        
    
    Returns the preferred section based on session, cookie, user object, default browser (if allowed), and finally site preferences.
Since the user's language is not a locale but a language, attempts to determine best section for the given language.
        
                            
    setupSiteInterfaceLocalization(Page $c = null)
        
    
    Set the locale associated to the 'site' localization context.
        
                static            bool
    isEnabled()
        
    
    Check if there's some multilingual section.