Comment::getStatus

public Comment::getStatus() Returns the comment's status. Return value int One of CommentInterface::PUBLISHED or CommentInterface::NOT_PUBLISHED Overrides CommentInterface::getStatus File core/modules/comment/src/Entity/Comment.php, line 480 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function getStatus() { return $this->get('status')->value; }

Comment::getHostname

public Comment::getHostname() Returns the comment author's hostname. Return value string The hostname of the author of the comment. Overrides CommentInterface::getHostname File core/modules/comment/src/Entity/Comment.php, line 440 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function getHostname() { return $this->get('hostname')->value; }

Comment::getParentComment

public Comment::getParentComment() Returns the parent comment entity if this is a reply to a comment. Return value \Drupal\comment\CommentInterface|null A comment entity of the parent comment or NULL if there is no parent. Overrides CommentInterface::getParentComment File core/modules/comment/src/Entity/Comment.php, line 336 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function getParentComment() { return $this->get('pid')->entity

Comment::getCommentedEntityId

public Comment::getCommentedEntityId() Returns the ID of the entity to which the comment is attached. Return value int The ID of the entity to which the comment is attached. Overrides CommentInterface::getCommentedEntityId File core/modules/comment/src/Entity/Comment.php, line 350 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function getCommentedEntityId() { return $this->get('entity_id')->target_id; }

Comment::getCreatedTime

public Comment::getCreatedTime() Returns the time that the comment was created. Return value int The timestamp of when the comment was created. Overrides CommentInterface::getCreatedTime File core/modules/comment/src/Entity/Comment.php, line 455 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function getCreatedTime() { if (isset($this->get('created')->value)) { return $this->get('created')->value; } return NULL; }

Comment::getCommentedEntityTypeId

public Comment::getCommentedEntityTypeId() Returns the type of the entity to which the comment is attached. Return value string An entity type. Overrides CommentInterface::getCommentedEntityTypeId File core/modules/comment/src/Entity/Comment.php, line 357 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function getCommentedEntityTypeId() { return $this->get('entity_type')->value; }

Comment::getFieldName

public Comment::getFieldName() Returns the name of the field the comment is attached to. Return value string The name of the field the comment is attached to. Overrides CommentInterface::getFieldName File core/modules/comment/src/Entity/Comment.php, line 372 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function getFieldName() { return $this->get('field_name')->value; }

Comment::getHomepage

public Comment::getHomepage() Returns the comment author's home page address. For anonymous authors, this is the value as typed in the comment form. Return value string The homepage address of the author of the comment. Overrides CommentInterface::getHomepage File core/modules/comment/src/Entity/Comment.php, line 425 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function getHomepage() { return $this->get('homepage')->value; }

Comment::getCommentedEntity

public Comment::getCommentedEntity() Returns the entity to which the comment is attached. Return value \Drupal\Core\Entity\FieldableEntityInterface The entity on which the comment is attached. Overrides CommentInterface::getCommentedEntity File core/modules/comment/src/Entity/Comment.php, line 343 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function getCommentedEntity() { return $this->get('entity_id')->entity; }

Comment::getAuthorName

public Comment::getAuthorName() Returns the comment author's name. For anonymous authors, this is the value as typed in the comment form. Return value string The name of the comment author. Overrides CommentInterface::getAuthorName File core/modules/comment/src/Entity/Comment.php, line 394 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function getAuthorName() { if ($this->get('uid')->target_id) { return $this->get('uid')->