You are here

public static function StripeExamplesEventSubscriber::getSubscribedEvents in Stripe 2.x

Return value

array The event names to listen for, and the methods that should be executed.

File

modules/stripe_examples/src/EventSubscriber/StripeExamplesEventSubscriber.php, line 22

Class

StripeExamplesEventSubscriber
Class EntityTypeSubscriber.

Namespace

Drupal\stripe_examples\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    StripeEvents::PAYMENT => 'updatePayment',
  ];
}