You are here

class StageFileProxySubscriber in Background Image 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/StageFileProxySubscriber.php \Drupal\background_image\EventSubscriber\StageFileProxySubscriber
  2. 2.0.x src/EventSubscriber/StageFileProxySubscriber.php \Drupal\background_image\EventSubscriber\StageFileProxySubscriber

Hierarchy

  • class \Drupal\background_image\EventSubscriber\StageFileProxySubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface

Expanded class hierarchy of StageFileProxySubscriber

1 string reference to 'StageFileProxySubscriber'
background_image.services.yml in ./background_image.services.yml
background_image.services.yml
1 service uses StageFileProxySubscriber
subscriber.background_image.stage_file_proxy in ./background_image.services.yml
Drupal\background_image\EventSubscriber\StageFileProxySubscriber

File

src/EventSubscriber/StageFileProxySubscriber.php, line 8

Namespace

Drupal\background_image\EventSubscriber
View source
class StageFileProxySubscriber implements EventSubscriberInterface {

  /**
   * @param \Drupal\stage_file_proxy\EventDispatcher\AlterExcludedPathsEvent $event
   */
  public function getExcludedPaths(AlterExcludedPathsEvent $event) {
    $event
      ->addExcludedPath('/background_image/css/');
  }

  /**
   * {@inheritdoc}
   */
  public static function getSubscribedEvents() {
    $events['stage_file_proxy.alter_excluded_paths'][] = [
      'getExcludedPaths',
    ];
    return $events;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
StageFileProxySubscriber::getExcludedPaths public function
StageFileProxySubscriber::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to.