You are here

public function LingotekAccount::setPlanType in Lingotek Translation 8

2 calls to LingotekAccount::setPlanType()
LingotekAccount::setPlan in src/LingotekAccount.php
LingotekAccount::__construct in src/LingotekAccount.php
Constructor.

File

src/LingotekAccount.php, line 89
Defines LingotekAccount.

Class

LingotekAccount

Namespace

Drupal\lingotek

Code

public function setPlanType($type = 'unknown') {
  variable_set('lingotek_account_plan_type', $type);
  $standard_types = array(
    'cosmopolitan_monthly',
    'cosmopolitan_yearly',
  );

  // if in this list, then set to 'standard'
  $type = in_array($type, $standard_types) ? 'standard' : $type;
  $this->planType = $type;
}