You are here

public static function RngRegistrationCreationSubscriber::getSubscribedEvents in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 3.x src/EventSubscriber/RngRegistrationCreationSubscriber.php \Drupal\rng\EventSubscriber\RngRegistrationCreationSubscriber::getSubscribedEvents()

File

src/EventSubscriber/RngRegistrationCreationSubscriber.php, line 35

Class

RngRegistrationCreationSubscriber
Class RngRegistrationCreationSubscriber.

Namespace

Drupal\rng\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events['rng.registration_create'][] = [
    'invalidEntityBundle',
  ];
  $events['rng.registration_create'][] = [
    'missingRegistrationType',
  ];
  $events['rng.registration_create'][] = [
    'acceptingRegistration',
  ];
  $events['rng.registration_create'][] = [
    'canRegisterProxies',
  ];

  // Setting this to a lower weight so it can potentially be easily skipped.
  $events['rng.registration_create'][] = [
    'remainingCapacity',
    -1,
  ];
  return $events;
}