Handler class for handling the "show" action.

 Methods

Handle the show event.

process() : void

Convert a model to it's labels and human readable values.

convertModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, \ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment) : array

Parameters

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException When a property could not be retrieved.

Returns

array

Get the headline for the template.

getHeadline(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : string

Parameters

Returns

string

Retrieve the model from the database or redirect to error page if model could not be found.

getModel() : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface | null

Calculate the label of a property to se in "show" view.

getPropertyLabel(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface $property) : string

Parameters

$property

\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface

The property for which the label shall be calculated.

Returns

string