Added Entity and Entity Reference Revisions which got dropped somewhere along the...
[yaffs-website] / web / modules / contrib / entity_reference_revisions / src / EntityNeedsSaveInterface.php
diff --git a/web/modules/contrib/entity_reference_revisions/src/EntityNeedsSaveInterface.php b/web/modules/contrib/entity_reference_revisions/src/EntityNeedsSaveInterface.php
new file mode 100644 (file)
index 0000000..1513aa3
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+
+namespace Drupal\entity_reference_revisions;
+
+/**
+ * Allows an entity to define whether it needs to be saved.
+ */
+interface EntityNeedsSaveInterface {
+
+  /**
+   * Checks whether the entity needs to be saved.
+   *
+   * @return bool
+   *   TRUE if the entity needs to be saved.
+   */
+  public function needsSave();
+}