A condition define when a property is visible or editable and when not.

 Methods

Create a deep clone of the condition.

__clone() : void

Check if the condition match.

match(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface|null $model, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $input, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $property, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface $legend) : bool

Parameters

$model

\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfacenull

If given, subpalettes will be evaluated depending on the model. If no model is given, all properties will be returned, including subpalette properties.

$input

\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.

Returns

bool