function Comment::getHomepage

Same name in other branches
  1. 9 core/modules/comment/src/Entity/Comment.php \Drupal\comment\Entity\Comment::getHomepage()
  2. 8.9.x core/modules/comment/src/Entity/Comment.php \Drupal\comment\Entity\Comment::getHomepage()
  3. 11.x core/modules/comment/src/Entity/Comment.php \Drupal\comment\Entity\Comment::getHomepage()

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 438

Class

Comment
Defines the comment entity class.

Namespace

Drupal\comment\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.