A legend group a lot of properties.
__clone() : void
addProperties(array|\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface[] $properties, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $before) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
array\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface[]The properties.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterfaceThe property before the passed properties shall be inserted (optional).
addProperty(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $property, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $before) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterfaceThe property before the passed property shall be inserted (optional).
clearProperties() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
getName() : string
stringgetPalette() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface | null
getProperties(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface|null $model, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $input) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface[]
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfacenullIf given, subpalettes will be evaluated depending on the model. If no model is given, all properties will be returned, including subpalette properties.
\ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBagIf given, subpalettes will be evaluated depending on the input data. If no model and no input data is given, all properties will be returned, including subpalette properties.
getProperty(string $propertyName) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface
stringThe property name.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
If the this legend does not contain the property. |
|---|
hasProperty(string $propertyName) : bool
stringThe property name.
boolisInitialVisible() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
removeProperty(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $property) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
setInitialVisibility(bool $value) : bool
boolThe visibility state.
boolsetName(string $name) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
stringThe name.
setPalette(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface|null $palette) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
setProperties(array|\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface[] $properties) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
array\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface[]The properties.