You are here

final class UserLogoutEvent in Hook Event Dispatcher 8

Class UserLogoutEvent.

Hierarchy

Expanded class hierarchy of UserLogoutEvent

1 file declares its use of UserLogoutEvent
hook_event_dispatcher.module in ./hook_event_dispatcher.module
Hook event dispatcher module.

File

src/Event/User/UserLogoutEvent.php, line 13

Namespace

Drupal\hook_event_dispatcher\Event\User
View 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() {
    return $this->account;
  }

  /**
   * Get the dispatcher type.
   *
   * @return string
   *   The dispatcher type.
   */
  public function getDispatcherType() {
    return HookEventDispatcherInterface::USER_LOGOUT;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
UserLogoutEvent::$account private property Account.
UserLogoutEvent::getAccount public function Get the account.
UserLogoutEvent::getDispatcherType public function Get the dispatcher type. Overrides EventInterface::getDispatcherType
UserLogoutEvent::__construct public function UserLoginEvent constructor.