public function WebformSubmissionValue::getWebformElements in Pardot Integration 2.x
Get the list of elements.
Return value
array Return the list of Elements.
2 calls to WebformSubmissionValue::getWebformElements()
- WebformSubmissionValue::buildConfigurationForm in src/
Plugin/ PardotFormMapFormatterPlugin/ WebformSubmissionValue.php - WebformSubmissionValue::getElementCollection in src/
Plugin/ PardotFormMapFormatterPlugin/ WebformSubmissionValue.php - Get the list of elements to map with.
File
- src/
Plugin/ PardotFormMapFormatterPlugin/ WebformSubmissionValue.php, line 208
Class
- WebformSubmissionValue
- Plugin to generate a text field and consume tokens for mappings.
Namespace
Drupal\pardot\Plugin\PardotFormMapFormatterPluginCode
public function getWebformElements() {
$webform = $this
->getWebform();
if ($webform) {
return $this
->getWebform()
->getElementsDecodedAndFlattened();
}
return [];
}