Default implementation of PaletteCollectionInterface.

 Methods

{@inheritdoc}

__clone() 

{@inheritdoc}

addPalette(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette) 

Parameters

$palette

{@inheritdoc}

addPalettes(array $palettes) 

Parameters

$palettes

{@inheritdoc}

findPalette(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $input) 

Parameters

$model

$input

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException Is thrown if there is no palette found or more than one palette.

{@inheritdoc}

getPaletteByName($paletteName) 

Parameters

$paletteName

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException Is thrown if there is no palette with this name.

{@inheritdoc}

getPalettes() 

{@inheritdoc}

hasPalette(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette) 

Parameters

$palette

{@inheritdoc}

hasPaletteByName($paletteName) 

Parameters

$paletteName

{@inheritdoc}

removePalette(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette) 

Parameters

$palette

{@inheritdoc}

setPalettes(array $palettes) 

Parameters

$palettes

 Properties

 

The palettes contained in the collection.

$palettes : array | \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface[]