You are here

public function Utils::wf_crm_get_fields in Webform CiviCRM Integration 8.5

Fetches CiviCRM field data.

fields: The CiviCRM contact fields this module supports tokens: Available tokens keyed to field ids sets: Info on fieldsets (entities)

Parameters

string $var: Name of variable to return: fields, tokens, or sets

Return value

array

array fields: The CiviCRM contact fields this module supports tokens: Available tokens keyed to field ids sets: Info on fieldsets (entities)

Overrides UtilsInterface::wf_crm_get_fields

4 calls to Utils::wf_crm_get_fields()
Utils::wf_crm_address_fields in src/Utils.php
These are the address fields this module supports
Utils::wf_crm_enabled_fields in src/Utils.php
Get ids or values of enabled CiviCRM fields for a webform.
Utils::wf_crm_get_campaign_activity_types in src/Utils.php
Get activity types related to CiviCampaign
Utils::wf_crm_get_field in src/Utils.php
Get a field based on its short or full name

File

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

Class

Utils

Namespace

Drupal\webform_civicrm

Code

public function wf_crm_get_fields($var = 'fields') {
  return \Drupal::service('webform_civicrm.fields')
    ->get($var);
}