Class Subscriber - gateway to the legacy Contao HOOK style callbacks.

 Methods

Create a template instance for the default panel elements if none has been created yet.

getPanelElementTemplate(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPanelElementTemplateEvent $event) : void
Static

{@inheritDoc}

getSubscribedEvents() 
Static

Add custom twig extension.

initTwig(\ContaoTwigInitializeEvent $event) : void

Parameters

$event

\ContaoTwigInitializeEvent

The event.

Initialize the panels for known actions so that they always know their state.

initializePanels(\ContaoCommunityAlliance\DcGeneral\Event\ActionEvent $event) : void

Render a property value to readable text.

renderReadablePropertyValue(\ContaoCommunityAlliance\DcGeneral\View\Event\RenderReadablePropertyValueEvent $event) : void
Static
SuppressWarnings (PHPMD.Superglobals)
SuppressWarnings (PHPMD.CamelCaseVariableName)

Parameters

Resolve a widget error message.

resolveWidgetErrorMessage(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ResolveWidgetErrorMessageEvent $event) : void
Static

Fetch the options for a certain property.

getOptions(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface $property) : array
Static

Decode a value from native data of the data provider to the widget via event.

decodeValue(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, string $property, mixed $value) : mixed
Static

Parameters

$property

string

The property.

$value

mixed

The value of the property.

Returns

mixed

Render a timestamp using the given format.

parseDateTime(\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, string $dateFormat, int $timeStamp) : string
Static

Parameters

$dateFormat

string

The date format to use.

$timeStamp

int

The timestamp.

Returns

string