Condition using a custom callback function for flexible custom conditions.

 Methods

{@inheritdoc}

__clone() 

Create a new instance.

__construct(\Closure $callback) 

Parameters

$callback

\Closure

The callback to execute.

{@inheritdoc}

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

Parameters

$model

$input

$property

$legend

 Properties

 

The callback.

$callback : \Closure