public function PropertiesExtended::submitConfigurationForm in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/src/Plugin/SalesforceMappingField/PropertiesExtended.php \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\PropertiesExtended::submitConfigurationForm()
- 5.0.x modules/salesforce_mapping/src/Plugin/SalesforceMappingField/PropertiesExtended.php \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\PropertiesExtended::submitConfigurationForm()
Implements PluginFormInterface::submitConfigurationForm().
Overrides SalesforceMappingFieldPluginBase::submitConfigurationForm
File
- modules/
salesforce_mapping/ src/ Plugin/ SalesforceMappingField/ PropertiesExtended.php, line 98
Class
- PropertiesExtended
- Adapter for entity properties and fields.
Namespace
Drupal\salesforce_mapping\Plugin\SalesforceMappingFieldCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::submitConfigurationForm($form, $form_state);
// Resetting the `drupal_field_value` to just the `setting` portion,
// which should be a string.
$config_value = $form_state
->getValue('config');
$config_value['drupal_field_value'] = $config_value['drupal_field_value']['setting'];
$form_state
->setValue('config', $config_value);
}