You are here

private static function AccountId::getConfig in Optimizely 8

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

Retrieve the config object for storing the settings.

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

File

src/AccountId.php, line 15

Class

AccountId
For handling the Optimizely account id number.

Namespace

Drupal\optimizely

Code

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