You are here

public static function AccountId::getId in Optimizely 8

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

Retrieve the account id.

4 calls to AccountId::getId()
AccountSettingsForm::buildForm in src/AccountSettingsForm.php
Form constructor.
AddUpdateForm::buildForm in src/AddUpdateForm.php
Form constructor.
AddUpdateForm::validateForm in src/AddUpdateForm.php
Check to make sure the project code is unique except for the default entry which uses the account ID but should support an additional entry to allow for custom settings.
ProjectListForm::buildForm in src/ProjectListForm.php
Form constructor.

File

src/AccountId.php, line 26

Class

AccountId
For handling the Optimizely account id number.

Namespace

Drupal\optimizely

Code

public static function getId() {
  $config = self::getConfig();
  $optimizely_id = $config
    ->get('optimizely_id');
  return $optimizely_id;
}