final class UserLogoutEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/user_event_dispatcher/src/Event/User/UserLogoutEvent.php \Drupal\user_event_dispatcher\Event\User\UserLogoutEvent
Class UserLogoutEvent.
Hierarchy
- class \Drupal\user_event_dispatcher\Event\User\UserLogoutEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of UserLogoutEvent
1 file declares its use of UserLogoutEvent
- 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/ UserLogoutEvent.php, line 13
Namespace
Drupal\user_event_dispatcher\Event\UserView source
final class UserLogoutEvent extends Event implements EventInterface {
/**
* Account.
*
* @var \Drupal\Core\Session\AccountInterface
*/
private $account;
/**
* UserLoginEvent constructor.
*
* @param \Drupal\Core\Session\AccountInterface $account
* Account.
*/
public function __construct(AccountInterface $account) {
$this->account = $account;
}
/**
* Get the account.
*
* @return \Drupal\Core\Session\AccountInterface
* Account.
*/
public function getAccount() : AccountInterface {
return $this->account;
}
/**
* Get the dispatcher type.
*
* @return string
* The dispatcher type.
*/
public function getDispatcherType() : string {
return HookEventDispatcherInterface::USER_LOGOUT;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UserLogoutEvent:: |
private | property | Account. | |
UserLogoutEvent:: |
public | function | Get the account. | |
UserLogoutEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
UserLogoutEvent:: |
public | function | UserLoginEvent constructor. |