protected function WebformCivicrmBase::getComponent in Webform CiviCRM Integration 8.5
Fetch a webform component given its civicrm field key
Parameters
$field_key:
Return value
array|null
2 calls to WebformCivicrmBase::getComponent()
- WebformAjax::contactAjax in src/
WebformAjax.php - Load one or more contacts via ajax
- WebformCivicrmBase::getExposedOptions in src/
WebformCivicrmBase.php - For a given field, find the options that are exposed to the webform.
File
- src/
WebformCivicrmBase.php, line 579 - Front-end form handler base class.
Class
- WebformCivicrmBase
- Class WebformCivicrmBase
Namespace
Drupal\webform_civicrmCode
protected function getComponent($field_key) {
if ($field_key && isset($this->enabled[$field_key])) {
$elements = $this->node
->getElementsDecodedAndFlattened();
return $elements[$this->enabled[$field_key]];
}
return NULL;
}