You are here

private static function AccountId::getConfig in Optimizely 8.3

Retrieve the config object for storing the settings.

3 calls to AccountId::getConfig()
AccountId::deleteId in src/Util/AccountId.php
Delete the account id.
AccountId::getId in src/Util/AccountId.php
Retrieve the account id.
AccountId::setId in src/Util/AccountId.php
Store the account id.

File

src/Util/AccountId.php, line 15

Class

AccountId
For handling the Optimizely account id number.

Namespace

Drupal\optimizely\Util

Code

private static function getConfig() {
  if (!self::$config) {
    self::$config = \Drupal::configFactory()
      ->getEditable('optimizely.settings');
  }
  return self::$config;
}