You are here

function salesforce_update_8001 in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 salesforce.install \salesforce_update_8001()
  2. 8.3 salesforce.install \salesforce_update_8001()

Install new "Use Latest API version" boolean; defaults to TRUE.

File

./salesforce.install, line 222
Salesforce install file.

Code

function salesforce_update_8001() {
  $settings = \Drupal::configFactory()
    ->getEditable('salesforce.settings');
  $settings
    ->set('use_latest', TRUE);
  $settings
    ->save();
}