You are here

protected function SimpleLdapUserSync::serialize in Simple LDAP 8

Serializes the account object. Used to see if the account changed.

Parameters

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

Return value

string The serialized account.

1 call to SimpleLdapUserSync::serialize()
SimpleLdapUserSync::updateDrupalUser in modules/simple_ldap_user/src/SimpleLdapUserSync.php
Dispatches an event so other modules can map LDAP properties.

File

modules/simple_ldap_user/src/SimpleLdapUserSync.php, line 145

Class

SimpleLdapUserSync

Namespace

Drupal\simple_ldap_user

Code

protected function serialize(UserInterface $account) {
  return md5(serialize($account));
}