You are here

public static function AccountId::getId in Optimizely 8.0

Same name and namespace in other branches
  1. 8 src/AccountId.php \Drupal\optimizely\AccountId::getId()
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 21
Contains \Drupal\optimizely\AccountId

Class

AccountId

Namespace

Drupal\optimizely

Code

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