public function EntityTranslationDefaultHandler::getTranslationAccess in Entity Translation 7
Overrides EntityTranslationHandlerInterface::getTranslationAccess
See also
EntityTranslationHandlerInterface::getTranslationAccess()
2 calls to EntityTranslationDefaultHandler::getTranslationAccess()
1 method overrides EntityTranslationDefaultHandler::getTranslationAccess()
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");
}