VariantPreset
final class VariantPreset (View source)
A Value Object for storing configuration of a Variant Preset
Methods
                    static VariantPreset
                
                
                    fromConfiguration(array $configuration)
        
                                            
                
            No description
                    bool
                
                
                    matchesMediaType(string $mediaType)
        
                                            
                
            Checks if any of the defined media type patterns matches the given concrete media type.
                    array
                
                
                    mediaTypePatterns()
        
                                            
                
            No description
                    array
                
                
                    variants()
        
                                            
                
            No description
Details
        
                            
    __construct(Label $label)
        
    
    No description
        
                static            VariantPreset
    fromConfiguration(array $configuration)
        
    
    No description
        
                            Label
    label()
        
    
    No description
        
                            bool
    matchesMediaType(string $mediaType)
        
    
    Checks if any of the defined media type patterns matches the given concrete media type.
        
                            array
    mediaTypePatterns()
        
    
    No description
        
                            array
    variants()
        
    
    No description