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;
}
doc_Drupal
2016-10-29 08:50:20
Comments
Leave a Comment

Please login to continue.