You are here

public function Comment::getHomepage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Entity/Comment.php \Drupal\comment\Entity\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

1 call to Comment::getHomepage()
Comment::getOwner in core/modules/comment/src/Entity/Comment.php
Returns the entity owner's user entity.

File

core/modules/comment/src/Entity/Comment.php, line 446
Contains \Drupal\comment\Entity\Comment.

Class

Comment
Defines the comment entity class.

Namespace

Drupal\comment\Entity

Code

public function getHomepage() {
  return $this
    ->get('homepage')->value;
}