StageFileProxySubscriber.php in Background Image 2.x        
                          
                  
                        
  
  
  
  
File
  src/EventSubscriber/StageFileProxySubscriber.php
  
    View source  
  <?php
namespace Drupal\background_image\EventSubscriber;
use Drupal\stage_file_proxy\EventDispatcher\AlterExcludedPathsEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class StageFileProxySubscriber implements EventSubscriberInterface {
  
  public function getExcludedPaths(AlterExcludedPathsEvent $event) {
    $event
      ->addExcludedPath('/background_image/css/');
  }
  
  public static function getSubscribedEvents() {
    $events['stage_file_proxy.alter_excluded_paths'][] = [
      'getExcludedPaths',
    ];
    return $events;
  }
}