You are here

public static function EntityTranslationHandlerFactory::getInstance in Entity Translation 7

Returns the singleton instance of the translation handler factory.

Return value

EntityTranslationHandlerFactory

2 calls to EntityTranslationHandlerFactory::getInstance()
EntityTranslationHierarchyTestCase::testHierarchy in tests/entity_translation.test
Tests the handler hierarchy.
entity_translation_get_handler in ./entity_translation.module
Translation handler factory.

File

includes/translation.handler_factory.inc, line 53
Translation handler factory for the Entity Translation module.

Class

EntityTranslationHandlerFactory
Class implementing the entity translation handler factory.

Code

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