You are here

public static function LingotekAccount::instance in Lingotek Translation 8

Gets the singleton instance of the Account class.

Return value

LingotekAccount An instantiated LingotekAccount object.

File

src/LingotekAccount.php, line 58
Defines LingotekAccount.

Class

LingotekAccount

Namespace

Drupal\lingotek

Code

public static function instance() {
  if (!isset(self::$instance)) {
    $class_name = __CLASS__;
    self::$instance = new $class_name();
  }
  return self::$instance;
}