final class UserCancelEvent in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/user_event_dispatcher/src/Event/User/UserCancelEvent.php \Drupal\user_event_dispatcher\Event\User\UserCancelEvent
Class UserCancelEvent.
Hierarchy
- class \Drupal\user_event_dispatcher\Event\User\UserCancelEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of UserCancelEvent
1 file declares its use of UserCancelEvent
- user_event_dispatcher.module in modules/
user_event_dispatcher/ user_event_dispatcher.module - User event dispatcher submodule.
File
- modules/
user_event_dispatcher/ src/ Event/ User/ UserCancelEvent.php, line 13
Namespace
Drupal\user_event_dispatcher\Event\UserView source
final class UserCancelEvent extends Event implements EventInterface {
/**
* The array of form values submitted by the user.
*
* @var array
*/
private $edit;
/**
* Account.
*
* @var \Drupal\Core\Session\AccountInterface
*/
private $account;
/**
* The account cancellation method.
*
* @var string
*/
private $method;
/**
* UserCancelEvent constructor.
*
* @param array $edit
* The array of form values submitted by the user.
* @param \Drupal\Core\Session\AccountInterface $account
* Account.
* @param string $method
* The account cancellation method.
*/
public function __construct(array $edit, AccountInterface $account, string $method) {
$this->edit = $edit;
$this->account = $account;
$this->method = $method;
}
/**
* Get edit array.
*
* @return array
* The array of form values submitted by the user.
*/
public function getEdit() : array {
return $this->edit;
}
/**
* Get the account.
*
* @return \Drupal\Core\Session\AccountInterface
* Account.
*/
public function getAccount() : AccountInterface {
return $this->account;
}
/**
* Get method.
*
* @return string
* The account cancellation method.
*/
public function getMethod() : string {
return $this->method;
}
/**
* Get the dispatcher type.
*
* @return string
* The dispatcher type.
*/
public function getDispatcherType() : string {
return HookEventDispatcherInterface::USER_CANCEL;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UserCancelEvent:: |
private | property | Account. | |
UserCancelEvent:: |
private | property | The array of form values submitted by the user. | |
UserCancelEvent:: |
private | property | The account cancellation method. | |
UserCancelEvent:: |
public | function | Get the account. | |
UserCancelEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
UserCancelEvent:: |
public | function | Get edit array. | |
UserCancelEvent:: |
public | function | Get method. | |
UserCancelEvent:: |
public | function | UserCancelEvent constructor. |