public function FormMap::toArray in Pardot Integration 2.x
File
- src/
FormMap.php, line 132
Class
- FormMap
- Provides an interface for defining Pardot Form Map entities.
Namespace
Drupal\pardotCode
public function toArray() {
$mapping = $this->mapping;
$mapping = array_map(function (MappedFieldInterface $mapping) {
return $mapping
->toArray();
}, $mapping);
$this->settings['post_url'] = $this
->getPostUrl();
$this->settings['form_map'] = $mapping;
return $this->settings;
}