You are here

function cms_content_sync_entity_translation_delete in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x cms_content_sync.module \cms_content_sync_entity_translation_delete()
  2. 2.0.x cms_content_sync.module \cms_content_sync_entity_translation_delete()

Implements hook_entity_translation_delete().

File

./cms_content_sync.module, line 1228
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);
}