
| Current Path : /var/www/html/ift/web/core/lib/Drupal/Core/Session/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/lib/Drupal/Core/Session/AccountSetEvent.php |
<?php
namespace Drupal\Core\Session;
use Symfony\Component\EventDispatcher\Event;
/**
* Event fired when an account is set for the current session.
*/
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;
}
}