You are here

public function FormMap::appendMappedField in Pardot Integration 2.x

Add a new MappedField instance to the collection array.

Parameters

string $class: The specific class name.

string $pardot_key: The name of the pardot field.

string $plugin_type: The machine name of the selected plugin.

mixed $plugin: The plugin instance or empty array.

array $config: Pass some optional init config to the plugin.

File

src/FormMap.php, line 100

Class

FormMap
Provides an interface for defining Pardot Form Map entities.

Namespace

Drupal\pardot

Code

public function appendMappedField(string $class = '\\Drupal\\pardot\\MappedField', string $pardot_key = '', string $plugin_type = '', $plugin = [], array $config = []) {
  $this->mapping[] = new $class($pardot_key, $plugin_type, $plugin, $config);
}