summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-10-01 14:45:42 (GMT)
committerAlex Pott2018-10-01 14:45:48 (GMT)
commit98bc15d7eda9c244d19920e318dd3ac84a9bb1a5 (patch)
tree441a3feccdee6c2bcb6e5ce85bc05962b83d04a7
parent83ec39854774bcc5f195b2904ad54862007979c5 (diff)
Issue #3001851 by abramm, longwave: Incorrect documented CommentInterface::getCommentedEntity() return value
(cherry picked from commit f8f869f223be307ea616649ed896fcf139993f48)
-rw-r--r--core/modules/comment/src/CommentInterface.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/modules/comment/src/CommentInterface.php b/core/modules/comment/src/CommentInterface.php
index e80e5ed..5540562 100644
--- a/core/modules/comment/src/CommentInterface.php
+++ b/core/modules/comment/src/CommentInterface.php
@@ -56,8 +56,9 @@ interface CommentInterface extends ContentEntityInterface, EntityChangedInterfac
/**
* Returns the entity to which the comment is attached.
*
- * @return \Drupal\Core\Entity\FieldableEntityInterface
- * The entity on which the comment is attached.
+ * @return \Drupal\Core\Entity\FieldableEntityInterface|null
+ * The entity on which the comment is attached or NULL if the comment is an
+ * orphan.
*/
public function getCommentedEntity();