function cms_content_sync_entity_translation_delete in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 8 cms_content_sync.module \cms_content_sync_entity_translation_delete()
- 2.1.x cms_content_sync.module \cms_content_sync_entity_translation_delete()
Implements hook_entity_translation_delete().
File
- ./
cms_content_sync.module, line 1262 - Module file for cms_content_sync.
Code
function cms_content_sync_entity_translation_delete(EntityInterface $translation) {
if (!_cms_content_sync_is_installed()) {
return;
}
if (!EntityHandlerPluginManager::isSupported($translation
->getEntityTypeId(), $translation
->bundle())) {
return;
}
PushIntent::pushEntityFromUi($translation, PushIntent::PUSH_AUTOMATICALLY, SyncIntent::ACTION_DELETE_TRANSLATION);
}