You are here

public constant SyncIntent::ACTION_DELETE_TRANSLATION in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/SyncIntent.php \Drupal\cms_content_sync\SyncIntent::ACTION_DELETE_TRANSLATION
  2. 2.0.x src/SyncIntent.php \Drupal\cms_content_sync\SyncIntent::ACTION_DELETE_TRANSLATION

Drupal doesn't update the ->getTranslationStatus($langcode) to TRANSLATION_REMOVED before calling hook_entity_translation_delete, so we need to use a custom action to circumvent deletions of translations of entities not being handled. This is only used for calling the ->pushEntity function. It will then be replaced by a simple ::ACTION_UPDATE.

File

src/SyncIntent.php, line 51

Class

SyncIntent
Class SyncIntent.

Namespace

Drupal\cms_content_sync

Code

public const ACTION_DELETE_TRANSLATION = 'delete translation';