public function MappedFieldBase::toArray in Pardot Integration 2.x
Returns an array representation of the segment.
Return value
array An array representation of the segment.
Overrides MappedFieldInterface::toArray
File
- src/
MappedFieldBase.php, line 88
Class
- MappedFieldBase
- Provides a class for mapped fields.
Namespace
Drupal\pardotCode
public function toArray() {
return [
'pardot_key' => $this
->getPardotKey(),
'plugin_type' => $this
->getPluginType(),
'plugin' => $this
->getPlugin(),
'class' => get_called_class(),
];
}