You are here

final class RegistrationEvents in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Event/RegistrationEvents.php \Drupal\rng\Event\RegistrationEvents

Defines events for registrations.

Hierarchy

Expanded class hierarchy of RegistrationEvents

See also

\Drupal\rng\Event\RegistrationAccessEvent

2 files declare their use of RegistrationEvents
RegistrationAccessControlHandler.php in src/AccessControl/RegistrationAccessControlHandler.php
RegistrationWaitListSubscriber.php in src/EventSubscriber/RegistrationWaitListSubscriber.php

File

src/Event/RegistrationEvents.php, line 10

Namespace

Drupal\rng\Event
View source
final class RegistrationEvents {

  /**
   * Name of the event when getting the access for creating a registration.
   *
   * This event allows modules to influence access during the registration
   * process.
   *
   * @Event
   *
   * @see \Drupal\rng\Event\RegistrationAccessEvent
   * @see \Drupal\rng\AccessControl\RegistrationAccessControlHandler::createAccess()
   *
   * @var string
   */
  const REGISTRATION_CREATE_ACCESS = 'rng.registration_create';

  /**
   * Name of the event fired after loading a registration.
   *
   * @Event
   *
   * @see \Drupal\rng\Event\RegistrationEvent
   */
  const REGISTRATION_LOAD = 'rng.registration.load';

  /**
   * Name of the event fired after creating a new registration.
   *
   * Fired before the registration is saved.
   *
   * @Event
   *
   * @see \Drupal\rng\Event\RegistrationEvent
   */
  const REGISTRATION_CREATE = 'rng.registration.create';

  /**
   * Name of the event fired before saving an registration.
   *
   * @Event
   *
   * @see \Drupal\rng\Event\RegistrationEvent
   */
  const REGISTRATION_PRESAVE = 'rng.registration.presave';

  /**
   * Name of the event fired after saving a new registration.
   *
   * @Event
   *
   * @see \Drupal\rng\Event\RegistrationEvent
   */
  const REGISTRATION_INSERT = 'rng.registration.insert';

  /**
   * Name of the event fired after saving an existing registration.
   *
   * @Event
   *
   * @see \Drupal\rng\Event\RegistrationEvent
   */
  const REGISTRATION_UPDATE = 'rng.registration.registration';

  /**
   * Name of the event fired before deleting an registration.
   *
   * @Event
   *
   * @see \Drupal\rng\Event\RegistrationEvent
   */
  const REGISTRATION_PREDELETE = 'rng.registration.predelete';

  /**
   * Name of the event fired after deleting an registration.
   *
   * @Event
   *
   * @see \Drupal\rng\Event\RegistrationEvent
   */
  const REGISTRATION_DELETE = 'rng.registration.delete';

}

Members

Namesort descending Modifiers Type Description Overrides
RegistrationEvents::REGISTRATION_CREATE constant Name of the event fired after creating a new registration.
RegistrationEvents::REGISTRATION_CREATE_ACCESS constant Name of the event when getting the access for creating a registration.
RegistrationEvents::REGISTRATION_DELETE constant Name of the event fired after deleting an registration.
RegistrationEvents::REGISTRATION_INSERT constant Name of the event fired after saving a new registration.
RegistrationEvents::REGISTRATION_LOAD constant Name of the event fired after loading a registration.
RegistrationEvents::REGISTRATION_PREDELETE constant Name of the event fired before deleting an registration.
RegistrationEvents::REGISTRATION_PRESAVE constant Name of the event fired before saving an registration.
RegistrationEvents::REGISTRATION_UPDATE constant Name of the event fired after saving an existing registration.