You are here

function UtilsInterface::wf_crm_user_cid in Webform CiviCRM Integration 8.5

Lookup a uf ID from contact ID or vice-versa With no arguments passed in, this function will return the contact_id of the current logged-in user

Parameters

$id: (optional) uf or contact ID - defaults to current user

$type: (optional) what type of ID is supplied - defaults to user id

Return value

int|null

1 method overrides UtilsInterface::wf_crm_user_cid()
Utils::wf_crm_user_cid in src/Utils.php
Lookup a uf ID from contact ID or vice-versa With no arguments passed in, this function will return the contact_id of the current logged-in user

File

src/UtilsInterface.php, line 188

Class

UtilsInterface

Namespace

Drupal\webform_civicrm

Code

function wf_crm_user_cid($id = NULL, $type = 'uf');