You are here

public function LingotekAccount::getStatusText in Lingotek Translation 7.6

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

File

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

Class

LingotekAccount
A class representing a Lingotek Account

Code

public function getStatusText() {
  return $this->status == 'active' ? '<span style="color: green;">' . t('Active') . '</span>' : '<span style="color: red;">' . t('Inactive') . '</span>';
}