final class VariantPreset (View source)

A Value Object for storing configuration of a Variant Preset

Methods

__construct(Label $label)

No description

static VariantPreset
fromConfiguration(array $configuration)

No description

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

Details

__construct(Label $label)

No description

Parameters

Label $label

static VariantPreset fromConfiguration(array $configuration)

No description

Parameters

array $configuration

Return Value

VariantPreset

Label label()

No description

Return Value

Label

bool matchesMediaType(string $mediaType)

Checks if any of the defined media type patterns matches the given concrete media type.

Parameters

string $mediaType

Return Value

bool

array mediaTypePatterns()

No description

Return Value

array

array variants()

No description

Return Value

array