You are here

public function MappedFieldBase::__construct in Pardot Integration 2.x

Constructs a new MappedField.

Parameters

string $pardot_key: The pardot field key to map the value to.

string $plugin_type: The plugin id.

mixed $plugin: (optional) The Plugin associated with this map.

mixed $config: (optional) Pass some initial config to the plugin.

Overrides MappedFieldInterface::__construct

1 method overrides MappedFieldBase::__construct()
MappedEmailField::__construct in src/MappedEmailField.php
Constructs a new MappedField.

File

src/MappedFieldBase.php, line 34

Class

MappedFieldBase
Provides a class for mapped fields.

Namespace

Drupal\pardot

Code

public function __construct(string $pardot_key = '', $plugin_type = '', $plugin = [], $config = []) {
  $this->pardotKey = $pardot_key;
  $this->pluginType = $plugin_type;
  $this->plugin = $plugin;
}