You are here

public function EntityTranslationDefaultHandler::getTranslationAccess in Entity Translation 7

Overrides EntityTranslationHandlerInterface::getTranslationAccess

See also

EntityTranslationHandlerInterface::getTranslationAccess()

2 calls to EntityTranslationDefaultHandler::getTranslationAccess()
EntityTranslationDefaultHandler::localTasksAlter in includes/translation.handler.inc
EntityTranslationNodeHandler::getTranslationAccess in includes/translation.handler.node.inc
1 method overrides EntityTranslationDefaultHandler::getTranslationAccess()
EntityTranslationNodeHandler::getTranslationAccess in includes/translation.handler.node.inc

File

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

Class

EntityTranslationDefaultHandler
Class implementing the default entity translation behaviours.

Code

public function getTranslationAccess($langcode) {
  return !empty($this->entityInfo['translation']['entity_translation']['skip original values access']) || !entity_translation_workflow_enabled() || $langcode != $this
    ->getLanguage() || user_access('edit original values') || user_access("edit {$this->entityType} original values");
}