Version 1
[yaffs-website] / web / modules / contrib / paragraphs / src / ParagraphInterface.php
diff --git a/web/modules/contrib/paragraphs/src/ParagraphInterface.php b/web/modules/contrib/paragraphs/src/ParagraphInterface.php
new file mode 100644 (file)
index 0000000..5d60881
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+namespace Drupal\paragraphs;
+
+use Drupal\user\EntityOwnerInterface;
+use Drupal\Core\Entity\ContentEntityInterface;
+
+/**
+ * Provides an interface defining a paragraphs entity.
+ * @ingroup paragraphs
+ */
+interface ParagraphInterface extends ContentEntityInterface, EntityOwnerInterface
+{
+
+  /**
+   * Gets the parent entity of the paragraph.
+   *
+   * Preserves language context with translated entities.
+   *
+   * @return ContentEntityInterface
+   *   The parent entity.
+   */
+  public function getParentEntity();
+}