class UserLoginEvent
Event that is fired when a user logs in.
Hierarchy
- class \Drupal\Component\EventDispatcher\Event extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\rules\Event\UserLoginEvent extends \Drupal\Component\EventDispatcher\Event
Expanded class hierarchy of UserLoginEvent
See also
1 file declares its use of UserLoginEvent
- rules.module in ./
rules.module - Hook implementations for the Rules module.
File
-
src/
Event/ UserLoginEvent.php, line 13
Namespace
Drupal\rules\EventView source
class UserLoginEvent extends Event {
const EVENT_NAME = 'rules_user_login';
/**
* The user account.
*
* @var \Drupal\user\UserInterface
*/
protected $account;
/**
* Constructs the object.
*
* @param \Drupal\user\UserInterface $account
* The account of the user logged in.
*/
public function __construct(UserInterface $account) {
$this->account = $account;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
UserLoginEvent::$account | protected | property | The user account. |
UserLoginEvent::EVENT_NAME | constant | ||
UserLoginEvent::__construct | public | function | Constructs the object. |