public function SalesforceMappingFieldsForm::fieldAddCallback in Salesforce Suite 8.3
Ajax callback for adding a new field.
File
- modules/
salesforce_mapping/ src/ Form/ SalesforceMappingFieldsForm.php, line 292
Class
- SalesforceMappingFieldsForm
- Salesforce Mapping Fields Form.
Namespace
Drupal\salesforce_mapping\FormCode
public function fieldAddCallback($form, FormStateInterface $form_state) {
$response = new AjaxResponse();
// Requires updating itself and the field map.
$response
->addCommand(new ReplaceCommand('#edit-field-mappings-wrapper', render($form['field_mappings_wrapper'])));
return $response;
}