class UserEmailVerificationVerifyEvent in User email verification 8
Wraps a user email verification event for event subscribers.
Hierarchy
- class \Drupal\user_email_verification\Event\UserEmailVerificationVerifyEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of UserEmailVerificationVerifyEvent
1 file declares its use of UserEmailVerificationVerifyEvent
- UserEmailVerificationVerify.php in src/
Controller/ UserEmailVerificationVerify.php
File
- src/
Event/ UserEmailVerificationVerifyEvent.php, line 13
Namespace
Drupal\user_email_verification\EventView source
class UserEmailVerificationVerifyEvent extends Event {
/**
* The user account being verify.
*
* @var \Drupal\user\UserInterface
*/
protected $user;
/**
* Notify the user as blocked account.
*
* @var \Drupal\user\UserInterface
*/
protected $notifyAsBlocked;
/**
* Constructs a user email verification event object.
*
* @param \Drupal\user\UserInterface $user
* The user account being verify.
* @param bool $notify_as_blocked
* Whether to notify the user as blocked account.
*/
public function __construct(UserInterface $user, $notify_as_blocked = FALSE) {
$this->user = $user;
$this->notifyAsBlocked = $notify_as_blocked;
}
/**
* Get the user account being verify.
*
* @return \Drupal\user\UserInterface
* The user account.
*/
public function getUser() {
return $this->user;
}
/**
* Gets whether if the user must be notified as blocked account.
*
* @return bool
* The user account.
*/
public function notifyAsBlocked() : bool {
return $this->notifyAsBlocked;
}
/**
* Sets whether if the user must be notified as blocked account.
*
* @param bool $notify_as_blocked
* Whether the user must be notified as blocked account.
*/
public function setNotifyAsBlocked($notify_as_blocked) {
$this->notifyAsBlocked = $notify_as_blocked;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UserEmailVerificationVerifyEvent:: |
protected | property | Notify the user as blocked account. | |
UserEmailVerificationVerifyEvent:: |
protected | property | The user account being verify. | |
UserEmailVerificationVerifyEvent:: |
public | function | Get the user account being verify. | |
UserEmailVerificationVerifyEvent:: |
public | function | Gets whether if the user must be notified as blocked account. | |
UserEmailVerificationVerifyEvent:: |
public | function | Sets whether if the user must be notified as blocked account. | |
UserEmailVerificationVerifyEvent:: |
public | function | Constructs a user email verification event object. |