You are here

public function EntityTranslationDefaultHandler::isNewEntity in Entity Translation 7

Overrides EntityTranslationHandlerInterface::isNewEntity

See also

EntityTranslationHandlerInterface::isNewEntity()

4 calls to EntityTranslationDefaultHandler::isNewEntity()
EntityTranslationDefaultHandler::entityFormLanguageWidget in includes/translation.handler.inc
EntityTranslationDefaultHandler::entityFormSubmit in includes/translation.handler.inc
EntityTranslationDefaultHandler::getFormLanguage in includes/translation.handler.inc
Retrieves the active form language.
EntityTranslationDefaultHandler::isTranslationForm in includes/translation.handler.inc
Returns TRUE if an entity translation is being edited.

File

includes/translation.handler.inc, line 1225
Default translation handler for the translation module.

Class

EntityTranslationDefaultHandler
Class implementing the default entity translation behaviours.

Code

public function isNewEntity() {
  $id = $this
    ->getEntityId();
  return empty($id);
}