Asset
class Asset extends LocalizedResource implements AssetInterface
Properties
| protected string[] | $localeCodes | List of codes for all the locales available in the space this resource belongs to. | from LocalizedResource | 
| protected Asset | $sys | ||
| protected string[] | $title | ||
| protected string[] | $description | ||
| protected FileInterface[] | $file | 
Methods
                    __construct(array $data)
        
                                            
                Resources in this SDK should not be built using $new Class().
from BaseResource
            
                    string|null
                
                
                from LocalizedResource
            
                    getSystemProperties()
        
                                            
                
            {@inheritdoc}
                    getEnvironment()
        
                                            
                
            Returns the environment this asset belongs to.
                    string|null
                
                
                
            
                    jsonSerialize()
        
                                            
                
            {@inheritdoc}
Details
        in BaseResource at         line 26
                    protected        
    __construct(array $data)
        
    
    Resources in this SDK should not be built using $new Class().
This method is only useful in testing environments, where the resource needs to be subclasses and this method made public.
        in BaseResource at         line 38
                            
    asLink()
        
    
    {@inheritdoc}
        in BaseResource at         line 49
                            
    getId()
        
    
    {@inheritdoc}
        in BaseResource at         line 57
                            
    getType()
        
    
    {@inheritdoc}
        in LocalizedResource at         line 41
                            
    initLocales(array $locales)
        
    
    
        in LocalizedResource at         line 65
                            $this
    setLocale(Locale|string $locale)
        
    
    Set the locale for this instance.
All future calls to a getter will return the information for this locale.
        in LocalizedResource at         line 77
                            string
    getLocale()
        
    
    The locale code for the currently set locale.
        in LocalizedResource at         line 89
                    protected        string
    getLocaleFromInput(Locale|string|null $input = \null)
        
    
    
        in LocalizedResource at         line 128
                    protected        string|null
    walkFallbackChain(array $valueMap, string $localeCode, Environment $environment)
        
    
    
        at         line 43
                            
    getSystemProperties()
        
    
    {@inheritdoc}
        at         line 53
                            Space
    getSpace()
        
    
    Returns the space this asset belongs to.
        at         line 63
                            Environment
    getEnvironment()
        
    
    Returns the environment this asset belongs to.
        at         line 73
                            string|null
    getTitle(Locale|string|null $locale = \null)
        
    
    
        at         line 86
                            string|null
    getDescription(Locale|string|null $locale = \null)
        
    
    
        at         line 99
                            FileInterface|null
    getFile(Locale|string|null $locale = \null)
        
    
    
        at         line 135
                            
    jsonSerialize()
        
    
    {@inheritdoc}