src/EventListener/ImportMovieListener.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\EventListener;
  3. use Pimcore\Event\BundleManager\PathsEvent;
  4. class ImportMovieListener
  5. {
  6.     public function addCSSFiles(PathsEvent $event)
  7.     {
  8.         $event->setPaths(
  9.             array_merge(
  10.                 $event->getPaths(),
  11.                 [
  12.                     '/static/css/admin-style.css'
  13.                 ]
  14.             )
  15.         );
  16.     }
  17.     public function addJSFiles(PathsEvent $event)
  18.     {
  19.         $event->setPaths(
  20.             array_merge(
  21.                 $event->getPaths(),
  22.                 [
  23.                     '/static/js/ImportButton.js'
  24.                 ]
  25.             )
  26.         );
  27.     }
  28. }