You are here

public function FieldProvider::attributeIsSyncedOnEvent in Lightweight Directory Access Protocol (LDAP) 8.4

Attribute is synced on event.

Parameters

string $name: Field name.

string $event: Event.

Return value

bool Is synced.

File

ldap_user/src/FieldProvider.php, line 185

Class

FieldProvider
Provides the basic and required fields needed for user mappings.

Namespace

Drupal\ldap_user

Code

public function attributeIsSyncedOnEvent(string $name, string $event) : bool {
  if (isset($this->attributes[$name]) && $this->attributes[$name]
    ->isEnabled() && in_array($event, $this->attributes[$name]
    ->getProvisioningEvents(), TRUE)) {
    return TRUE;
  }
  return FALSE;
}