RegistrationEvent.php in RNG - Events and Registrations 8.2
Same filename and directory in other branches
Namespace
Drupal\rng\EventFile
src/Event/RegistrationEvent.phpView source
<?php
namespace Drupal\rng\Event;
use Drupal\rng\Entity\RegistrationInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Registration event.
*
* @see \Drupal\rng\Event\RegistrationEvents
*/
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;
}
}
Classes
Name | Description |
---|---|
RegistrationEvent | Registration event. |