final class MediaTypePattern (View source)

Methods

__construct(string $mediaTypePattern)

Currently only image/* media types are allowed, because asset variant presets lack support for other types, such as audio, document or video.

bool
matches(string $mediaType)

No description

string
getMediaTypePattern()

No description

string
__toString()

No description

Details

__construct(string $mediaTypePattern)

Currently only image/* media types are allowed, because asset variant presets lack support for other types, such as audio, document or video.

Parameters

string $mediaTypePattern

A regular exception matching media type(s)

bool matches(string $mediaType)

No description

Parameters

string $mediaType

The concrete media type, for example "image/jpeg"

Return Value

bool

string getMediaTypePattern()

No description

Return Value

string

string __toString()

No description

Return Value

string