You are here

private function SimpleLdapUserSettingsForm::getObjectClassOptions in Simple LDAP 8

Return value

array A array of objectClasses formatted for use as options in a Form API element.

1 call to SimpleLdapUserSettingsForm::getObjectClassOptions()
SimpleLdapUserSettingsForm::buildForm in modules/simple_ldap_user/src/Form/SimpleLdapUserSettingsForm.php
Form constructor.

File

modules/simple_ldap_user/src/Form/SimpleLdapUserSettingsForm.php, line 191

Class

SimpleLdapUserSettingsForm

Namespace

Drupal\simple_ldap_user\Form

Code

private function getObjectClassOptions() {
  $object_classes = $this->schema
    ->getSchemaItem('objectClasses');
  foreach ($object_classes as $key => $object_class) {
    $object_classes[$key] = $object_class['name'];
  }
  asort($object_classes);
  return $object_classes;
}