This event is emitted when a property value of a model shall be transformed into a readable string representation.

 Methods

Create a new instance.

__construct(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface $property, mixed $value) 

Parameters

$environment

\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface

The environment in use.

$model

\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface

The model the value originates from.

$value

mixed

The value to transform.

Retrieve the rendered string representation.

getRendered() : null | string

Returns

nullstring

Retrieve the value.

getValue() : mixed

Returns

mixed

Set the rendered value.

setRendered(null|string $rendered) : \ContaoCommunityAlliance\DcGeneral\View\Event\RenderReadablePropertyValueEvent

Parameters

$rendered

nullstring

The rendered string representation or null to clear the representation.

Returns

 Properties

   

The transformed string representation.

$rendered : string | null
 

The value that shall be transformed.

$value : mixed

 Constants

 

NAME

NAME