The model formatter format a model and create a string representation.

 Methods

Return the format string.

getFormat() : string

Returns

string

Return the formatted maximum length.

getMaxLength() : int | null

Returns

intnull

Return the used property names.

getPropertyNames() : array

Returns

array

Set the formatted maximum length.

setMaxLength(int|null $maxLength) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface

Parameters

$maxLength

intnull

The length to use - pass null to clear the cutting.

Returns

Set the used property names.

setPropertyNames(array $propertyNames) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface