You are here

protected function EntityTranslationDefaultHandler::isTranslationForm in Entity Translation 7

Returns TRUE if an entity translation is being edited.

4 calls to EntityTranslationDefaultHandler::isTranslationForm()
EntityTranslationDefaultHandler::entityForm in includes/translation.handler.inc
EntityTranslationDefaultHandler::updateFormLanguage in includes/translation.handler.inc
Update the current form language based on the submitted value.
EntityTranslationNodeHandler::entityForm in includes/translation.handler.node.inc
Convert the translation update status fieldset into a vartical tab.
EntityTranslationNodeHandler::entityFormSubmit in includes/translation.handler.node.inc

File

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

Class

EntityTranslationDefaultHandler
Class implementing the default entity translation behaviours.

Code

protected function isTranslationForm() {
  return !$this
    ->isNewEntity() && $this
    ->getActiveLanguage() != $this
    ->getLanguage();
}