Class AbstractCallbackListener.
__construct(array|callable $callback, array|null $restrictions)
array
callable
The callback to call when invoked.
array
null
The restrictions for the callback.
__invoke(\ContaoCommunityAlliance\DcGeneral\Event\AbstractEnvironmentAwareEvent $event) : void
\ContaoCommunityAlliance\DcGeneral\Event\AbstractEnvironmentAwareEvent
The Event for which the callback shall be invoked.
getArgs(\Symfony\Component\EventDispatcher\Event $event) : array
getCallback() : array | callable
array
callable
setRestrictions(null|string $dataContainerName) : void
null
string
The name of the data container to limit execution on.
wantToExecute(\ContaoCommunityAlliance\DcGeneral\Event\AbstractEnvironmentAwareEvent $event) : bool
\ContaoCommunityAlliance\DcGeneral\Event\AbstractEnvironmentAwareEvent
The Event for which the callback shall be invoked.
bool
$callback : array | callable
$dataContainerName : null | string