NotifyReminderEvent.php in Ubercart 8.4
Namespace
Drupal\uc_role\EventFile
uc_role/src/Event/NotifyReminderEvent.phpView source
<?php
namespace Drupal\uc_role\Event;
use Drupal\Core\Session\AccountInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Event that is fired when a user role is close to expiring.
*/
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;
}
}
Classes
Name | Description |
---|---|
NotifyReminderEvent | Event that is fired when a user role is close to expiring. |