public static function AccountId::setId in Optimizely 8
Same name and namespace in other branches
- 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\optimizelyCode
public static function setId($id) {
$config = self::getConfig();
$config
->set('optimizely_id', $id);
$config
->save();
return TRUE;
}