You are here

public static function AccountId::setId in Optimizely 8.0

Same name and namespace in other branches
  1. 8 src/AccountId.php \Drupal\optimizely\AccountId::setId()
1 call to AccountId::setId()
AccountSettingsForm::submitForm in src/AccountSettingsForm.php
Form submission handler.

File

src/AccountId.php, line 28
Contains \Drupal\optimizely\AccountId

Class

AccountId

Namespace

Drupal\optimizely

Code

public static function setId($id) {
  $config = self::getConfig();
  $config
    ->set('optimizely_id', $id);
  $config
    ->save();
  return TRUE;
}