Contains multiple palettes, organised by its name.
__clone() : void
addPalette(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface
addPalettes(array|\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface[] $palettes) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface
array
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface[]
The palettes.
clearPalettes() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteCollectionInterface
findPalette(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface|null $model, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $input) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
null
If given, selectors will be evaluated depending on the model.
\ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
If given, selectors will be evaluated depending on the input data.
getPaletteByName(string $paletteName) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface
deprecated | Only for backwards compatibility, we will remove palette names in the future! |
---|
string
The palette name.
getPalettes() : array | \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface[]
hasPalette(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette) : bool
bool
hasPaletteByName(string $paletteName) : bool
deprecated | Only for backwards compatibility, we will remove palette names in the future! |
---|
string
The palette name.
bool
removePalette(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface
setPalettes(array|\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface[] $palettes) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteCollectionInterface
array
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface[]
The palettes.