You are here

public static function EnsureSubscriber::getSubscribedEvents in Flysystem 8

Same name and namespace in other branches
  1. 3.x src/EventSubscriber/EnsureSubscriber.php \Drupal\flysystem\EventSubscriber\EnsureSubscriber::getSubscribedEvents()
  2. 2.0.x src/EventSubscriber/EnsureSubscriber.php \Drupal\flysystem\EventSubscriber\EnsureSubscriber::getSubscribedEvents()
  3. 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\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [];
  $events[FlysystemEvents::ENSURE][] = 'onEnsure';
  return $events;
}