You are here

public static function UloginHelper::identityLoadByUid in uLogin (advanced version) 8

Internal functions.

2 calls to UloginHelper::identityLoadByUid()
UserIdentity::buildForm in src/Form/UserIdentity.php
Form constructor.
UserIdentityDelete::buildForm in src/Form/UserIdentityDelete.php
Form constructor.

File

src/UloginHelper.php, line 58

Class

UloginHelper
Ulogin Helper class.

Namespace

Drupal\ulogin

Code

public static function identityLoadByUid($uid) {
  $result = \Drupal::database()
    ->select('ulogin_identity', 'ul_id')
    ->fields('ul_id')
    ->condition('uid', $uid)
    ->execute()
    ->fetchAllAssoc('id', \PDO::FETCH_ASSOC);
  return $result;
}