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
Namespace
Drupal\webform_civicrmCode
function wf_crm_state_abbr($input, $ret = 'abbreviation', $country_id = NULL);