public static function EnsureSubscriber::getSubscribedEvents in Flysystem 2.0.x
Same name and namespace in other branches
- 8 src/EventSubscriber/EnsureSubscriber.php \Drupal\flysystem\EventSubscriber\EnsureSubscriber::getSubscribedEvents()
- 3.x src/EventSubscriber/EnsureSubscriber.php \Drupal\flysystem\EventSubscriber\EnsureSubscriber::getSubscribedEvents()
- 3.0.x src/EventSubscriber/EnsureSubscriber.php \Drupal\flysystem\EventSubscriber\EnsureSubscriber::getSubscribedEvents()
1 call to EnsureSubscriber::getSubscribedEvents()
- EnsureSubscriberTest::testSubscribedEvents in tests/
src/ Unit/ EventSubscriber/ EnsureSubscriberTest.php - Tests that the ENSURE event is registered.
File
- src/
EventSubscriber/ EnsureSubscriber.php, line 27
Class
- EnsureSubscriber
- Event listener that listens to Flysystem ensure() calls.
Namespace
Drupal\flysystem\EventSubscriberCode
public static function getSubscribedEvents() {
$events = [];
$events[FlysystemEvents::ENSURE][] = 'onEnsure';
return $events;
}