You are here

public static function AccountId::deleteId in Optimizely 8

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

Delete the account id.

Currently, only the account id is stored in the settings, so we just delete everything stored in "optimizely.settings".

File

src/AccountId.php, line 50

Class

AccountId
For handling the Optimizely account id number.

Namespace

Drupal\optimizely

Code

public static function deleteId() {
  $config = self::getConfig();
  $config
    ->delete();
  return TRUE;
}