You are here

function Utils::wf_crm_address_fields in Webform CiviCRM Integration 8.5

These are the address fields this module supports

Return value

array

Overrides UtilsInterface::wf_crm_address_fields

File

src/Utils.php, line 845
Webform CiviCRM module's common utility functions.

Class

Utils

Namespace

Drupal\webform_civicrm

Code

function wf_crm_address_fields() {
  $fields = [];
  foreach (array_keys($this
    ->wf_crm_get_fields()) as $key) {
    if (strpos($key, 'address') === 0) {
      $fields[] = substr($key, 8);
    }
  }
  return $fields;
}