You are here

class RegistrationEvent in RNG - Events and Registrations 3.x

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

Registration event.

Hierarchy

  • class \Drupal\rng\Event\RegistrationEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of RegistrationEvent

See also

\Drupal\rng\Event\RegistrationEvents

3 files declare their use of RegistrationEvent
RegistrationStorage.php in src/RegistrationStorage.php
RegistrationSubscriber.php in rng_easy_email/src/EventSubscriber/RegistrationSubscriber.php
RegistrationWaitListSubscriber.php in src/EventSubscriber/RegistrationWaitListSubscriber.php

File

src/Event/RegistrationEvent.php, line 13

Namespace

Drupal\rng\Event
View source
class RegistrationEvent extends Event {

  /**
   * The registration.
   *
   * @var \Drupal\rng\Entity\RegistrationInterface
   */
  protected $registration;

  /**
   * RegistrationEvent constructor.
   *
   * @param \Drupal\rng\Entity\RegistrationInterface $registration
   *   The registration.
   */
  public function __construct(RegistrationInterface $registration) {
    $this->registration = $registration;
  }

  /**
   * Get the registration.
   *
   * @return \Drupal\rng\Entity\RegistrationInterface
   *   The registration.
   */
  public function getRegistration() {
    return $this->registration;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RegistrationEvent::$registration protected property The registration.
RegistrationEvent::getRegistration public function Get the registration.
RegistrationEvent::__construct public function RegistrationEvent constructor.