public function EntityTranslationDefaultHandler::isWrappedEntity in Entity Translation 7
Overrides EntityTranslationHandlerInterface::isWrappedEntity
See also
EntityTranslationHandlerInterface::isWrappedEntity()
File
- includes/
translation.handler.inc, line 1038 - Default translation handler for the translation module.
Class
- EntityTranslationDefaultHandler
- Class implementing the default entity translation behaviours.
Code
public function isWrappedEntity($entity_type, $entity) {
list($id, , ) = entity_extract_ids($entity_type, $entity);
return $entity_type == $this->entityType && $id == $this->entityId;
}