You are here

public function PropertiesExtended::submitConfigurationForm in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/Plugin/SalesforceMappingField/PropertiesExtended.php \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\PropertiesExtended::submitConfigurationForm()
  2. 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 184

Class

PropertiesExtended
Adapter for entity properties and fields.

Namespace

Drupal\salesforce_mapping\Plugin\SalesforceMappingField

Code

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);
}