You are here

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

Internal functions.

2 calls to UloginHelper::identityLoadById()
UserIdentityDelete::buildForm in src/Form/UserIdentityDelete.php
Form constructor.
UserIdentityDelete::submitForm in src/Form/UserIdentityDelete.php
Form submission handler.

File

src/UloginHelper.php, line 70

Class

UloginHelper
Ulogin Helper class.

Namespace

Drupal\ulogin

Code

public static function identityLoadById($id) {
  $result = \Drupal::database()
    ->select('ulogin_identity', 'ul_id')
    ->fields('ul_id')
    ->condition('id', $id)
    ->execute()
    ->fetchAssoc();
  return $result;
}