function UtilsInterface::wf_crm_enabled_fields in Webform CiviCRM Integration 8.5
Get ids or values of enabled CiviCRM fields for a webform.
Parameters
\Drupal\webform\WebformInterface $webform: The webform.
array|null $submission: (optional) if supplied, will match field keys with submitted values
boolean $show_all: (optional) if true, get every field even if it belongs to a contact that does not exist
Return value
array of enabled fields
1 method overrides UtilsInterface::wf_crm_enabled_fields()
- Utils::wf_crm_enabled_fields in src/
Utils.php - Get ids or values of enabled CiviCRM fields for a webform.
File
- src/
UtilsInterface.php, line 169
Class
Namespace
Drupal\webform_civicrmCode
function wf_crm_enabled_fields(WebformInterface $webform, $submission = NULL, $show_all = FALSE);