Version 1
[yaffs-website] / web / core / modules / comment / src / Plugin / Field / FieldType / CommentItemInterface.php
diff --git a/web/core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php b/web/core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php
new file mode 100644 (file)
index 0000000..1caee56
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+
+namespace Drupal\comment\Plugin\Field\FieldType;
+
+/**
+ * Interface definition for Comment items.
+ */
+interface CommentItemInterface {
+
+  /**
+   * Comments for this entity are hidden.
+   */
+  const HIDDEN = 0;
+
+  /**
+   * Comments for this entity are closed.
+   */
+  const CLOSED = 1;
+
+  /**
+   * Comments for this entity are open.
+   */
+  const OPEN = 2;
+
+  /**
+   * Comment form should be displayed on a separate page.
+   */
+  const FORM_SEPARATE_PAGE = 0;
+
+  /**
+   * Comment form should be shown below post or list of comments.
+   */
+  const FORM_BELOW = 1;
+
+}