You are here

public function SamlauthUserSyncEvent::setAccount in SAML Authentication 4.x

Same name and namespace in other branches
  1. 8.3 src/Event/SamlauthUserSyncEvent.php \Drupal\samlauth\Event\SamlauthUserSyncEvent::setAccount()
  2. 8.2 src/Event/SamlauthUserSyncEvent.php \Drupal\samlauth\Event\SamlauthUserSyncEvent::setAccount()

Sets the altered Drupal user entity.

Parameters

\Drupal\user\UserInterface $account: The Drupal user account.

File

src/Event/SamlauthUserSyncEvent.php, line 75

Class

SamlauthUserSyncEvent
Wraps a samlauth user sync event for event listeners.

Namespace

Drupal\samlauth\Event

Code

public function setAccount(UserInterface $account) {
  $this->account = $account;
}