public function EntityTranslationDefaultHandler::removeChild in Entity Translation 7
Overrides EntityTranslationHandlerInterface::removeChild
See also
EntityTranslationHandlerInterface::removeChild()
File
- includes/
translation.handler.inc, line 541 - Default translation handler for the translation module.
Class
- EntityTranslationDefaultHandler
- Class implementing the default entity translation behaviours.
Code
public function removeChild($entity_type, $entity) {
if (!empty($this->factory)) {
$hid = $this->factory
->getHandlerId($entity_type, $entity);
unset($this->children[$hid]);
}
}