You are here

public function LingotekAccount::getPlanTypeText in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getPlanTypeText()
  2. 7.3 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getPlanTypeText()
  3. 7.4 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getPlanTypeText()
  4. 7.5 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getPlanTypeText()

File

lib/Drupal/lingotek/LingotekAccount.php, line 104
Defines LingotekAccount.

Class

LingotekAccount
A class representing a Lingotek Account

Code

public function getPlanTypeText() {
  $plan_pieces = explode('_', $this
    ->getPlanType());
  $details = ucwords(end($plan_pieces));

  // e.g., Enterprise, Monthly, Yearly
  return $details;
}