Comment::getThread

public Comment::getThread()

Returns the alphadecimal representation of the comment's place in a thread.

Return value

string The alphadecimal representation of the comment's place in a thread.

Overrides CommentInterface::getThread

File

core/modules/comment/src/Entity/Comment.php, line 495

Class

Comment
Defines the comment entity class.

Namespace

Drupal\comment\Entity

Code

public function getThread() {
  $thread = $this->get('thread');
  if (!empty($thread->value)) {
    return $thread->value;
  }
}
doc_Drupal
2016-10-29 08:50:22
Comments
Leave a Comment

Please login to continue.