You are here

public static function AccountId::setId in Optimizely 8.3

Store the account id.

1 call to AccountId::setId()
AccountSettingsForm::submitForm in src/Form/AccountSettingsForm.php
Form submission handler.

File

src/Util/AccountId.php, line 36

Class

AccountId
For handling the Optimizely account id number.

Namespace

Drupal\optimizely\Util

Code

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