You are here

function ldap_servers_ldap_attributes_needed_alter in Lightweight Directory Access Protocol (LDAP) 8.3

Same name and namespace in other branches
  1. 8.2 ldap_servers/ldap_servers.module \ldap_servers_ldap_attributes_needed_alter()
  2. 7.2 ldap_servers/ldap_servers.module \ldap_servers_ldap_attributes_needed_alter()

Implements hook_ldap_attributes_needed_alter().

File

ldap_servers/ldap_servers.module, line 30
The ldap_servers module file.

Code

function ldap_servers_ldap_attributes_needed_alter(&$attributes, $params) {
  $factory = \Drupal::service('ldap.servers');
  $attributes = $factory
    ->alterLdapAttributes($attributes, $params);
}