src/CoreBundle/EventListener/DcGeneral/Table/RenderSettings/AddAssetListener.php
public function getJavascripts(GetOptionsEvent $event)
    {
        if (($event->getEnvironment()->getDataDefinition()->getName() !== 'tl_metamodel_rendersettings')
            || ($event->getPropertyName() !== 'additionalJs')
            || ($event->getSubPropertyName() !== 'file')) {
            return;
        }

        $event->setOptions($this->scanFiles('js'));
    }
public function getJavascripts(GetOptionsEvent $event)
    {
        if (($event->getEnvironment()->getDataDefinition()->getName() !== 'tl_metamodel_rendersettings')
            || ($event->getPropertyName() !== 'additionalJs')
            || ($event->getSubPropertyName() !== 'file')) {
            return;
        }

        $event->setOptions($this->scanFiles('js'));
    }
Provide options for additional javascript files.

@param GetOptionsEvent $event The event.

@return void