Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Entity / TranslatableInterface.php
diff --git a/web/core/lib/Drupal/Core/Entity/TranslatableInterface.php b/web/core/lib/Drupal/Core/Entity/TranslatableInterface.php
new file mode 100644 (file)
index 0000000..573310b
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+namespace Drupal\Core\Entity;
+
+use Drupal\Core\TypedData\TranslatableInterface as TranslatableDataInterface;
+
+/**
+ * Provides methods for an entity to support translation.
+ */
+interface TranslatableInterface extends TranslatableDataInterface {
+
+  /**
+   * Determines if the current translation of the entity has unsaved changes.
+   *
+   * @return bool
+   *   TRUE if the current translation of the entity has changes.
+   */
+  public function hasTranslationChanges();
+
+}