public function SamlauthUserSyncEvent::__construct in SAML Authentication 4.x
Same name and namespace in other branches
- 8.3 src/Event/SamlauthUserSyncEvent.php \Drupal\samlauth\Event\SamlauthUserSyncEvent::__construct()
- 8.2 src/Event/SamlauthUserSyncEvent.php \Drupal\samlauth\Event\SamlauthUserSyncEvent::__construct()
Constructs a samlauth user sync event object.
Parameters
\Drupal\user\UserInterface $account: The Drupal user account.
array $attributes: The SAML attributes received from the IdP.
bool $first_saml_login: An indicator of whether the account is newly registered/linked.
File
- src/
Event/ SamlauthUserSyncEvent.php, line 53
Class
- SamlauthUserSyncEvent
- Wraps a samlauth user sync event for event listeners.
Namespace
Drupal\samlauth\EventCode
public function __construct(UserInterface $account, array $attributes, $first_saml_login = FALSE) {
$this->account = $account;
$this->attributes = $attributes;
$this->firstSamlLogin = $first_saml_login;
}