final class AccountSetEvent in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Session/AccountSetEvent.php \Drupal\Core\Session\AccountSetEvent
Event fired when an account is set for the current session.
Hierarchy
- class \Drupal\Core\Session\AccountSetEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of AccountSetEvent
File
- core/
lib/ Drupal/ Core/ Session/ AccountSetEvent.php, line 10
Namespace
Drupal\Core\SessionView source
final class AccountSetEvent extends Event {
/**
* The set account.
*
* @var \Drupal\Core\Session\AccountInterface
*/
protected $account;
/**
* AccountSetEvent constructor.
*
* @param \Drupal\Core\Session\AccountInterface $account
* The set account.
*/
public function __construct(AccountInterface $account) {
$this->account = $account;
}
/**
* Gets the account.
*
* @return \Drupal\Core\Session\AccountInterface
* The account.
*/
public function getAccount() {
return $this->account;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AccountSetEvent:: |
protected | property | The set account. | |
AccountSetEvent:: |
public | function | Gets the account. | |
AccountSetEvent:: |
public | function | AccountSetEvent constructor. |