You are here

public function WebformMapping::injectRequiredFields in Pardot Integration 2.x

File

src/Plugin/FormMapHandlerPlugin/WebformMapping.php, line 54

Class

WebformMapping
Plugin to capture browser cookies and send them to pardot.

Namespace

Drupal\pardot\Plugin\FormMapHandlerPlugin

Code

public function injectRequiredFields(FormMap $pardot_form_map) {
  $pardot_form_map
    ->appendMappedField('\\Drupal\\pardot\\MappedEmailField', 'email', 'webform_submission_value', [], [
    'entity_id' => $this->configuration['entity_type_id'] . ':' . $this->configuration['entity_id'],
  ]);
}