SilverStripe\Intercom\IntercomFormExtension::addMappings
Adds FormFieldName => IntercomName mappings to a given array.
To map to a custom attribute, use $my_custom_attribute
Signature
protected function addMappings(string
$formField,
string
$intercomField,
array
$data )
Parameters
$formField
— string- The name of the form field
$intercomField
— string- The name of the intercom field it maps to
$data
— array- The array of mappings to update
Returns
- array