src/Transformation/TransformationListenerBundle/TransformationTransformationListenerBundle.php line 7

Open in your IDE?
  1. <?php
  2. namespace Transformation\TransformationListenerBundle;
  3. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  4. class TransformationTransformationListenerBundle extends AbstractPimcoreBundle
  5. {
  6.     public function getJsPaths()
  7.     {
  8.         return [
  9.             '/bundles/transformationtransformationlistener/js/pimcore/startup.js'
  10.         ];
  11.     }
  12.     public function addJSFiles(PathsEvent $event)
  13.     {
  14.         $event->setPaths(
  15.             array_merge(
  16.                 $event->getPaths(),
  17.                 [
  18.                     '/static/js/startup.js'
  19.                 ]
  20.             )
  21.         );
  22.     }
  23. }