You are here

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\Event
View 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

Namesort descending Modifiers Type Description Overrides
NotifyRevokeEvent::$account public property The user.
NotifyRevokeEvent::$expiration public property The expiration.
NotifyRevokeEvent::EVENT_NAME constant
NotifyRevokeEvent::__construct public function Constructs the object.