class NotifyRevokeEvent in Ubercart 8.4
Event that is fired when a user role is revoked.
Hierarchy
- class \Drupal\uc_role\Event\NotifyRevokeEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of NotifyRevokeEvent
1 file declares its use of NotifyRevokeEvent
- uc_role.module in uc_role/
uc_role.module - Grants roles upon accepted payment of products.
File
- uc_role/
src/ Event/ NotifyRevokeEvent.php, line 11
Namespace
Drupal\uc_role\EventView source
class NotifyRevokeEvent extends Event {
const EVENT_NAME = 'uc_role_notify_revoke';
/**
* 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 |
---|---|---|---|---|
NotifyRevokeEvent:: |
public | property | The user. | |
NotifyRevokeEvent:: |
public | property | The expiration. | |
NotifyRevokeEvent:: |
constant | |||
NotifyRevokeEvent:: |
public | function | Constructs the object. |