class StageFileProxySubscriber in Background Image 8
Same name and namespace in other branches
- 2.x src/EventSubscriber/StageFileProxySubscriber.php \Drupal\background_image\EventSubscriber\StageFileProxySubscriber
- 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'
1 service uses StageFileProxySubscriber
File
- src/
EventSubscriber/ StageFileProxySubscriber.php, line 8
Namespace
Drupal\background_image\EventSubscriberView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StageFileProxySubscriber:: |
public | function | ||
StageFileProxySubscriber:: |
public static | function | Returns an array of event names this subscriber wants to listen to. |