Widget Builder build Contao backend widgets.

 Methods

Construct.

__construct(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment) 

Parameters

Build a widget for a given property.

buildWidget(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface $property, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : \Widget
SuppressWarnings (PHPMD.Superglobals)
SuppressWarnings (PHPMD.CamelCaseVariableName)

Parameters

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException When not running in TL_MODE BE.

Returns

Handle the build widget event.

handleEvent(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\BuildWidgetEvent $event) : void
Static

Get the help wizard.

getHelpWizard(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface $propInfo) : string

Parameters

$propInfo

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

The property for which the wizard shall be generated.

Returns

string

Get the list import wizard.

getListWizard() : string

Returns

string

Get special labels.

getOptionsForWidget(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface $propInfo, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : string

Parameters

$propInfo

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

The property for which the X label shall be generated.

Returns

string

Get the table import wizard.

getTableWizard() : string

Returns

string

Try to resolve the class name for the widget.

getWidgetClass(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface $property) : string
SuppressWarnings (PHPMD.Superglobals)
SuppressWarnings (PHPMD.CamelCaseVariableName)

Parameters

Returns

string

Get special labels.

getXLabel(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface $propInfo) : string

Parameters

$propInfo

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

The property for which the X label shall be generated.

Returns

string

 Properties

 

Mapping list of widget types where the DC General has it own widgets.

$widgetMapping : array