Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kporras07/79dc92b1ac657aaf566bb2cc782452c7 to your computer and use it in GitHub Desktop.
Save kporras07/79dc92b1ac657aaf566bb2cc782452c7 to your computer and use it in GitHub Desktop.
diff --git a/core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php b/core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php
index ff41106..6c4caa2 100644
--- a/core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php
+++ b/core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php
@@ -37,6 +37,8 @@ trait EntityChangesDetectionTrait {
}
}
+ \Drupal::moduleHandler()->alter('fields_to_skip_from_translation_changes', $fields, $entity);
+
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment