This event is fired when a template instance for a panel element shall be created.

 Methods

Create a new instance.

__construct(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\Panel\PanelElementInterface $element) 

Parameters

$environment

\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface

The environment to attach.

$element

\ContaoCommunityAlliance\DcGeneral\Panel\PanelElementInterface

The element for which a template shall get retrieved for.

Set the template instance.

setTemplate(\ContaoCommunityAlliance\DcGeneral\View\ViewTemplateInterface $template) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPanelElementTemplateEvent

 Properties

 

The element for which a template shall get retrieved.

$element : \ContaoCommunityAlliance\DcGeneral\Panel\PanelElementInterface
 

 Constants

 

The name of the event.

NAME