Version 1
[yaffs-website] / web / core / modules / comment / src / CommentTypeInterface.php
diff --git a/web/core/modules/comment/src/CommentTypeInterface.php b/web/core/modules/comment/src/CommentTypeInterface.php
new file mode 100644 (file)
index 0000000..acde96c
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+
+namespace Drupal\comment;
+
+use Drupal\Core\Config\Entity\ConfigEntityInterface;
+
+/**
+ * Provides an interface defining a comment type entity.
+ */
+interface CommentTypeInterface extends ConfigEntityInterface {
+
+  /**
+   * Returns the comment type description.
+   *
+   * @return string
+   *   The comment-type description.
+   */
+  public function getDescription();
+
+  /**
+   * Sets the description of the comment type.
+   *
+   * @param string $description
+   *   The new description.
+   *
+   * @return $this
+   */
+  public function setDescription($description);
+
+  /**
+   * Gets the target entity type id for this comment type.
+   *
+   * @return string
+   *   The target entity type id.
+   */
+  public function getTargetEntityTypeId();
+
+}