class NotifyReminderEvent in Ubercart 8.4
Event that is fired when a user role is close to expiring.
Hierarchy
- class \Drupal\uc_role\Event\NotifyReminderEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of NotifyReminderEvent
1 file declares its use of NotifyReminderEvent
- uc_role.module in uc_role/
uc_role.module - Grants roles upon accepted payment of products.
File
- uc_role/
src/ Event/ NotifyReminderEvent.php, line 11
Namespace
Drupal\uc_role\EventView source
class NotifyReminderEvent extends Event {
const EVENT_NAME = 'uc_role_notify_reminder';
/**
* The user.
*
* @var \Drupal\Core\Session\AccountInterface
*/
public $account;
/**
* The expiration.
*
* @var array
*/
public $expiration;
/**
* Constructs the object.
*
* @param \Drupal\Core\Session\AccountInterface $account
* The user.
* @param array $expiration
* The expiration.
*/
public function __construct(AccountInterface $account, array $expiration) {
$this->account = $account;
$this->expiration = $expiration;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NotifyReminderEvent:: |
public | property | The user. | |
NotifyReminderEvent:: |
public | property | The expiration. | |
NotifyReminderEvent:: |
constant | |||
NotifyReminderEvent:: |
public | function | Constructs the object. |