You are here

private function LdapUserAdminForm::isMappingConfigurable in Lightweight Directory Access Protocol (LDAP) 8.3

Is a mapping configurable by a given module?

Parameters

array|null $mapping: As mapping configuration for field, attribute, property, etc.

string $module: Machine name such as ldap_user.

Return value

bool Whether mapping is configurable.

1 call to LdapUserAdminForm::isMappingConfigurable()
LdapUserAdminForm::getServerMappingFields in ldap_user/src/Form/LdapUserAdminForm.php
Return the server mappings for the fields.

File

ldap_user/src/Form/LdapUserAdminForm.php, line 984

Class

LdapUserAdminForm
Provides the form to configure user configuration and field mapping.

Namespace

Drupal\ldap_user\Form

Code

private function isMappingConfigurable($mapping = [], $module = 'ldap_user') {
  $configurable = (!isset($mapping['configurable_to_drupal']) && !isset($mapping['configurable_to_ldap']) || isset($mapping['configurable_to_drupal']) && $mapping['configurable_to_drupal'] || isset($mapping['configurable_to_ldap']) && $mapping['configurable_to_ldap']) && (!isset($mapping['config_module']) || isset($mapping['config_module']) && $mapping['config_module'] == $module);
  return $configurable;
}