LocalizedResource
class LocalizedResource
A LocalizedResource can store information for multiple locales. The methods in this base class allow switching between the locales.
Properties
| protected string[] | $availableLocales | List of codes for all the locales available in the space this resource belongs to. | 
Methods
                    __construct(array $availableLocales)
        
                                            
                
            LocalizedResource constructor.
                    $this
                
                
                
            
                    string
                
                
                    getLocale()
        
                                            
                
            The locale code for the currently set locale.
                    string
                
                
                
            
                    string|null
                
                
                
            Details
        at         line 36
                            
    __construct(array $availableLocales)
        
    
    LocalizedResource constructor.
        at         line 55
                            $this
    setLocale(Locale|string $locale)
        
    
    Set the locale for this instance. All future calls to a getter will return the information for this locale.
        at         line 75
                            string
    getLocale()
        
    
    The locale code for the currently set locale.