Default implementation of a legend.
__clone()
__construct(string $name)
string
The name of the legend.
addProperties(array $properties, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $before)
addProperty(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $property, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $before)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When the property passed as $before can not be found. |
---|
clearProperties()
getName()
getPalette()
getProperties(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $input)
getProperty($propertyName)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When the legend does not contain the desired property. |
---|
hasProperty($propertyName)
isInitialVisible()
removeProperty(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $property)
setInitialVisibility($value)
setName($name)
setPalette(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette)
setProperties(array $properties)
$initiallyVisible : bool
$name : string
$palette : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface | null
$properties : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface[] | array