You are here

public function Mapping::serialize in Lightweight Directory Access Protocol (LDAP) 8.4

Serialized data.

Return value

array Data.

File

ldap_servers/src/Mapping.php, line 138

Class

Mapping
Interface for the synchronization mappings ldap_user provides.

Namespace

Drupal\ldap_servers

Code

public function serialize() : array {
  return [
    'ldap_attr' => $this
      ->getLdapAttribute(),
    'user_attr' => $this
      ->getDrupalAttribute(),
    'convert' => $this
      ->isBinary(),
    'user_tokens' => $this
      ->getUserTokens(),
    'config_module' => $this
      ->getConfigurationModule(),
    'prov_module' => $this
      ->getProvisioningModule(),
    'prov_events' => $this
      ->getProvisioningEvents(),
  ];
}