You are here

function UtilsInterface::wf_crm_state_abbr in Webform CiviCRM Integration 8.5

Match a state/province id to its abbr. and vice-versa

Parameters

$input: User input (state province id or abbr)

$ret: String: 'abbreviation' or 'id'

$country_id: Int: (optional) must be supplied if fetching id from abbr

Return value

string or integer

1 method overrides UtilsInterface::wf_crm_state_abbr()
Utils::wf_crm_state_abbr in src/Utils.php
Match a state/province id to its abbr. and vice-versa

File

src/UtilsInterface.php, line 65

Class

UtilsInterface

Namespace

Drupal\webform_civicrm

Code

function wf_crm_state_abbr($input, $ret = 'abbreviation', $country_id = NULL);