Version 1
[yaffs-website] / web / modules / contrib / entity / src / Entity / RevisionableEntityBundleInterface.php
diff --git a/web/modules/contrib/entity/src/Entity/RevisionableEntityBundleInterface.php b/web/modules/contrib/entity/src/Entity/RevisionableEntityBundleInterface.php
new file mode 100644 (file)
index 0000000..6e543b1
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+
+namespace Drupal\entity\Entity;
+
+use Drupal\Core\Config\Entity\ConfigEntityInterface;
+
+interface RevisionableEntityBundleInterface extends ConfigEntityInterface {
+
+  /**
+   * Returns whether a new revision should be created by default.
+   *
+   * @return bool
+   *   TRUE if a new revision should be created by default.
+   */
+  public function shouldCreateNewRevision();
+
+}