public function Comment::getHostname in Drupal 8
Same name and namespace in other branches
- 9 core/modules/comment/src/Entity/Comment.php \Drupal\comment\Entity\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 453
Class
- Comment
- Defines the comment entity class.
Namespace
Drupal\comment\EntityCode
public function getHostname() {
return $this
->get('hostname')->value;
}