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\PropertyInterface
The 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\PropertyInterface
The property before the passed property shall be inserted (optional).
clearProperties() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
getName() : string
string
getPalette() : \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\ModelInterface
null
If 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\PropertyValueBag
If 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
string
The property name.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
If the this legend does not contain the property. |
---|
hasProperty(string $propertyName) : bool
string
The property name.
bool
isInitialVisible() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
removeProperty(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $property) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
setInitialVisibility(bool $value) : bool
bool
The visibility state.
bool
setName(string $name) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
string
The 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.