protected function WebformCivicrmBase::getMembershipTypeField in Webform CiviCRM Integration 8.5
Parameters
$type:
$field:
Return value
array|null
3 calls to WebformCivicrmBase::getMembershipTypeField()
- WebformCivicrmPostProcess::processMemberships in src/
WebformCivicrmPostProcess.php - Process memberships for a contact Called during webform submission
- WebformCivicrmPostProcess::tallyLineItems in src/
WebformCivicrmPostProcess.php - Calculate line-items for this webform submission
- WebformCivicrmPreProcess::loadMemberships in src/
WebformCivicrmPreProcess.php - Load existing membership information and display a message to members.
File
- src/
WebformCivicrmBase.php, line 738 - Front-end form handler base class.
Class
- WebformCivicrmBase
- Class WebformCivicrmBase
Namespace
Drupal\webform_civicrmCode
protected function getMembershipTypeField($type, $field) {
if (!$this->membership_types) {
$utils = \Drupal::service('webform_civicrm.utils');
$this->membership_types = $utils
->wf_crm_apivalues('membership_type', 'get');
}
return wf_crm_aval($this->membership_types, $type . ':' . $field);
}