You are here

public static function Utils::wf_crm_field_options in Webform CiviCRM Integration 8.5

Get options for a specific field

Parameters

array $field: Webform component array

string $context: Where is this being called from?

array $data: Array of crm entity data

Return value

array

Overrides UtilsInterface::wf_crm_field_options

File

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

Class

Utils

Namespace

Drupal\webform_civicrm

Code

public static function wf_crm_field_options($field, $context, $data) {
  return \Drupal::service('webform_civicrm.field_options')
    ->get($field, $context, $data);
}