public function FieldProvider::getAttributesSyncedOnEvent in Lightweight Directory Access Protocol (LDAP) 8.4
Get Attributes synced on event.
Parameters
string $event: Event.
Return value
\Drupal\ldap_servers\Mapping[] Mapping.
File
- ldap_user/
src/ FieldProvider.php, line 205
Class
- FieldProvider
- Provides the basic and required fields needed for user mappings.
Namespace
Drupal\ldap_userCode
public function getAttributesSyncedOnEvent(string $event) : array {
$synced_attributes = [];
foreach ($this->attributes as $key => $attribute) {
if ($attribute
->isEnabled() && in_array($event, $attribute
->getProvisioningEvents(), TRUE)) {
$synced_attributes[$key] = $attribute;
}
}
return $synced_attributes;
}