You are here

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

File

src/Plugin/FormMapHandlerPlugin/ContactFormMapping.php, line 57

Class

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

Namespace

Drupal\pardot\Plugin\FormMapHandlerPlugin

Code

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