You are here

public function EntityTranslationDefaultHandler::getLabel in Entity Translation 7

Overrides EntityTranslationHandlerInterface::getLabel

See also

EntityTranslationHandlerInterface::getLabel()

3 calls to EntityTranslationDefaultHandler::getLabel()
EntityTranslationCommentHandler::entityFormTitle in includes/translation.handler.comment.inc
EntityTranslationDefaultHandler::entityFormTitle in includes/translation.handler.inc
Returns the title to be used for the entity form page.
EntityTranslationNodeHandler::entityFormTitle in includes/translation.handler.node.inc

File

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

Class

EntityTranslationDefaultHandler
Class implementing the default entity translation behaviours.

Code

public function getLabel() {
  if (($label = entity_label($this->entityType, $this->entity)) !== FALSE) {
    return $label;
  }
  else {
    return "{$this->entityType}:{$this->getEntityId()}";
  }
}