You are here

public static function AccountId::setId in Optimizely 8

Same name and namespace in other branches
  1. 8.0 src/AccountId.php \Drupal\optimizely\AccountId::setId()

Store the account id.

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

File

src/AccountId.php, line 36

Class

AccountId
For handling the Optimizely account id number.

Namespace

Drupal\optimizely

Code

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