class UserLoginEvent in Rules 8.3
Event that is fired when a user logs in.
Hierarchy
- class \Drupal\rules\Event\UserLoginEvent extends \Symfony\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
*/
public $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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UserLoginEvent:: |
public | property | The user account. | |
UserLoginEvent:: |
constant | |||
UserLoginEvent:: |
public | function | Constructs the object. |