public getRenderTypes ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void | ||
$event | ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent | The event. |
return | void |
public function getRenderTypes(GetPropertyOptionsEvent $event)
{
if ($event->getEnvironment()->getDataDefinition()->getName() !== 'tl_metamodel_dca' || $event->getPropertyName() !== 'rendertype') {
return;
}
$event->setOptions(array('standalone', 'ctable'));
}